GauthamBellamkonda / Othello

This project was done as a part of one of my courses at IITH

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Othello Game

Table of Contents

  1. About The Project
  2. Design Patterns
  3. Getting Started
  4. Build
  5. Usage
  6. License

About the project

A project with both single and double player based Othello game img

Design Patterns

img

The design patterns used in the project were

  • MVC (Model - View - Controller) design pattern
  • Strategy
  • Null Object

Getting started

Before playing the game some dependies are needed which are listed below.

Installing Dependencies

  • 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

Build

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

Usage

How to play the game and some rules

Using gui version

  • 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).

Using cli version

  • 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"

License

Distributed under the GNU GPL v3.0 License. See LICENSE for more information.

About

This project was done as a part of one of my courses at IITH

License:GNU General Public License v3.0


Languages

Language:C++ 96.5%Language:Makefile 2.3%Language:Python 0.7%Language:C 0.5%Language:Shell 0.1%