Skip to content

letesdev/IMTA-PRASE-GobbletGobblers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IMTA-PRASE-GobbletGobblers

C Badge C++ Badge

About

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!

GOBBLET GOBBLERS

Project description

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.

Command-Line Interface (CLI)

Using the provided board.o library, the first step is to implement your own CLI to play the game, in C.

Game Engine in C++

Replacing the provided board.o library, the second step is to implement your own Game Engine in C++. 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.

Extension - Bot

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.

How to use

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.

  1. Clone this repo

a. In order to test the CLI, written in C

  1. Compile the source code:

    cd srcC && make
  2. Run the software using ./GobbletGobblers_v1

    GobbletGobblers_v1

  3. Play !

    GobbletGobblers_v1_play

b. In order to test the Game Engine, written in C++

  1. Compile the source code:

    cd srcC++ && make
  2. Run the software using ./GobbletGobblers_v2

    GobbletGobblers_v2

  3. Play !

c. In order to play against the Bot, written in C++

  1. Compile the source code:

    cd srcC++ && make
  2. Run the software using ./GobbletGobblers_v2

    GobbletGobblers_v2

  3. 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.

Appreciations

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.

About

Gobblets Gobblers implementation on C/C++

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published