Question:
Write a program to Simulate a game oftic tac toe. A game oftic tac toehas two players. A Player class is required to store /represent information about each player. The UML diagram is given below.
Player
-name: string
-symbol :char
Player (name:string,symbol:char)
getName():string
getSymbol():char
getInfo():string
Thetic tac toeboard will be represented by a two dimensional array of size 3 by 3 characters. At the start of the game each cell is empty (must be set to the underscore character ‘_’).
Program flow:
Your program does not have to detect if the game is won. It simply allows the players to place symbols on the board.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here