A project with both single and double player based Othello game
The design patterns used in the project were
- MVC (Model - View - Controller) design pattern
- Strategy
- Null Object
Before playing the game some dependies are needed which are listed below.
- g++-10
sudo apt-get update
sudo apt install g++-10
- fmt library
sudo apt update
sudo apt install libfmt-dev
- SFML library
sudo apt update
sudo apt-get install libsfml-dev
- TGUI library
sudo add-apt-repository ppa:texus/tgui
sudo apt-get update
sudo apt-get install libtgui-0.9-dev
git clone https://github.com/IITH-CS1023/cs1023-sdf-project-team-15.git Othello_Game
cd Othello_Game
#to build the executable for gui version
make all
#to run the executable for gui version
make run
#to build the executable for cli version
make all_cli
#to run the executable for cli version
make run_cli
How to play the game and some rules
- First select the mode of play
- Press the mouse where you want to place your coin
- Press "pass" if you dont want to play your turn (Remember if both players press pass at the same turn then the game will be over there).
- Enter the coordinate of the block where you want to place your coin
- The game will end if the board is totally filled
- If you want to exit the game press "Crtl+C"
Distributed under the GNU GPL v3.0 License. See LICENSE for more information.