Print the board and all the places that a player can put a disc above another stone on the board.
THIS FOLLOWING PROGRAM IS TO BE WRITTEN IN C++
DO NOT ANSWER IN JAVA
C++ PROGRAM: There is a rule that when a player puts a disc on the board, it must be adjacent to another disc already on the board. We will implement part of this rule.
C++ PROGRAM to WRITE:
Declare a board and read it from a file. The file othellopos1.txt is on Sakai. Its form is as shown on the previous page.
Print the board and all the places that a player can put a disc above another stone on the board.
Here is the result of a run of the program. N stands for “north.”
........
...O....
...XX...
...OX...
...XOO..
..X.O...
........
........
LEGAL N MOVES
ROW COL
0 3
1 4
3 5
4 2
ALL DONE IN C++ no need to create the game just console
Trending now
This is a popular solution!
Step by step
Solved in 6 steps with 1 images