This Project is a implementation of Object Oriented Programming Language, where two friends can play Othello.
$ git clone https://github.com/skyamit/OthelloGame
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?
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!
Contributions are always welcome! We look forward to collaboration.