Skip to content

crafaelgil/Othelo-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Othelo Game

This program is a simple implementation of the game Othelo to be run from the command line.

Rules of the game

  • In Othello, the two colours are Black and White and Black always plays first.
  • The four squares in the middle of the board start with four counters already placed - white top left and bottom right; black top right and bottom left.
  • A player without a move simply passes, and the other player keeps playing pieces until the first player can make a move again.

Installation

Clone this git repository and inside the project's folder type the following comands to compile and execute the program:

$ gcc -c othelo.c && gcc -o othelo.o othelo.c
$ ./othelo.o

Usage

Right after being executed the prompt will ask you choose which player (1 or 2) you want to play. Player 1 places 'o' and goes first. Player 2 places 'x' and goes second.

To place a 'stone' (o or x) you need to manually enter the x and y coordinate.

At the end of the gamer a .txt file is generated with the history of the game.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages