This repository is an educational purpose software. This software was an Engineering School Project within Programmation Appliqué Aux Systèmes Embarqués subject (IMT Atlantique, programmed in Semester 5).
Gobblet Gobblers is a variant of the classic Tic-Tac-Toe from Blue Orange. The main difference with Tic-Tac-Toe is you can move your pieces and you can gobble up your opponent's pieces if it is smaller than yours!
Here are some of the details from our professor to develop our game, based on UED_projet_Gobblets_2021.pdf.
Some pre-compiled implementation of the game module is provided by the professors, in the form of
.o
and.h
files. A documentation based on the provided header files is available at html folder.
Using the provided
board.o
library, the first step is to implement your own CLI to play the game, inC
.
Replacing the provided
board.o
library, the second step is to implement your own Game Engine inC++
. To do this, you must organize your project into classes. The provided.h
file will help you identify the different classes needed to implement your own game engine.
To improve your grade, we invite you to create a bot, that is to say a program that replaces the player. Ideally, you could offer a version where it is possible to adjust the difficulty of the bot, an easy bot playing almost randomly while a difficult bot will play very cleverly.
Linux comes with the GNU C
compiler preinstalled (if not, you can easily install with sudo apt install make gcc g++
), which is why I recommend using Ubuntu.
- Clone this repo
-
Compile the source code:
cd srcC++ && make
-
Run the software using
./GobbletGobblers_v2
-
Select 2. Jouer vs Bot., then select bot type:
- Random bot will choose randomly a movement between the legal movements available,
- One Layer bot will choose the winning movement, taking account the first of the three layer at the game.
We would like to thank the professor of the IMT Atlantique for all their support and for allowing this kind of cool high shool projects.