Skip to content

skyamit/OthelloGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Othello also known as Reversi - Strategy board game for two player

This Project is a implementation of Object Oriented Programming Language, where two friends can play Othello.

Download

$ git clone https://github.com/skyamit/OthelloGame

How to Play:

1. The game will ask for player 1's name
2. The game will ask for player 1's sign(usually B for Black )
3. The game will ask for player 2's name
4. The game will ask for player 2's sign(usually W for white )
5. Now just keep on providing x and y coordinates of the board, where you want to mark your sign, game will check if it is valid move or not.
6. If one player is not able to make a move he can just pass it to different player.
7. Once someone wins or the game results in a draw, the game will end.
8. Play again, maybe? Who will be the winner this time?

Game Example:

Enter player 1 name : 
Player1
Enter player 1 sign : 
B
Enter player 2 name : 
Player2
Enter player 2 sign : 
W

Game starts!!

---------------------------  
  0  1  2  3  4  5  6  7     
0 -  -  -  -  -  -  -  -     
1 -  -  -  -  -  -  -  -     
2 -  -  -  -  -  -  -  -     
3 -  -  -  B  W  -  -  -     
4 -  -  -  W  B  -  -  -     
5 -  -  -  -  -  -  -  -     
6 -  -  -  -  -  -  -  -     
7 -  -  -  -  -  -  -  -     
---------------------------  

Player1 your Sign is B       
Enter x coordinate Player1 : 
3
Enter y coordinate Player1 : 
5
---------------------------
  0  1  2  3  4  5  6  7   
0 -  -  -  -  -  -  -  -   
1 -  -  -  -  -  -  -  -   
2 -  -  -  -  -  -  -  -
3 -  -  -  B  B  B  -  -
4 -  -  -  W  B  -  -  -
5 -  -  -  -  -  -  -  -
6 -  -  -  -  -  -  -  -
7 -  -  -  -  -  -  -  -
---------------------------
Player1's score is 4
Player2's score is 1


Player2 your Sign is W
Enter x coordinate Player2 :
2
Enter y coordinate Player2 : 
5
---------------------------
  0  1  2  3  4  5  6  7
0 -  -  -  -  -  -  -  -
1 -  -  -  -  -  -  -  -
2 -  -  -  -  -  W  -  -
3 -  -  -  B  W  B  -  -
4 -  -  -  W  B  -  -  -
5 -  -  -  -  -  -  -  -
6 -  -  -  -  -  -  -  -
7 -  -  -  -  -  -  -  -
---------------------------
Player2's score is 3
Player1's score is 3

Continue the game this way....

Player1 your Sign is B
Enter x coordinate player1 :
0
Enter y coordinate player1 :
6
---------------------------
  W  1  2  3  4  5  6  7
W B  B  B  B  B  B  B  W
1 B  B  B  W  W  B  B  W
2 B  B  W  B  B  W  B  W
3 B  W  B  W  W  B  W  W
4 W  B  B  W  B  W  W  W
5 W  W  W  B  W  W  W  W
6 W  W  W  W  W  W  W  W
7 W  W  W  W  W  W  W  W
---------------------------
Game Over !! Player2's won the game with score 41

Have fun playing terminal Othello with your friends!

Authors

Contributing

Contributions are always welcome! We look forward to collaboration.

About

Othello is Strategy board game for two player

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages