We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Five classes are created : Person, Student, Member, Book, Librarian. The Student and Memeber classes are inherited from Person for further status specification purpose. Librarian has the greatest power of all : it inherited from Person and Book, so basically everything.
Basically the same as Lab 03 but here Class concept is used for the game.
Prompt player #1 and #2 for their moves. ( row, column ) If player #2 tempts to place a move that the player #1 already occupied, he/she will be ask to enter another coordinate. Moves of player #1 and #2 will be output on the board on every move.
If the result is a tie, output "TIE" and end the game.
If player #1 won, announced player #1 as the winner and exit the game.
If player #2 won, announced player #2 as the winner and end the game!
I haven't gotten enough time to finish this up but the concept is to create 4 functions to determine the state for the cell and its surrounding. Then these functions will be called based on the cell value on the randomly assigned 10 x 10 board to determine the condition.