subject

Write a program in Java following these pseudocode:

class ticTacToe

{

public:

void play();

//Function to start the play……x /O keep playing …. getXOMove

void displayBoard() const;

//Function to print the board.

bool isValidMove(int x, int y) const;

//Function to determine if a move is valid.

bool getXOMove(char moveSymbol);

//Function to get a move for a player…read row col..check it displayboard…check game status..count nbof moves

status gameStatus();

//Function to determine the current status of the game.

void reStart();

//Function to restart the game.

ticTacToe();

//Default constructor.

//Postcondition: Initializes the board to an empty state.

private:

char board[3][3];

int noOfMoves;

};

//

int main()

{

ticTacToe game;

game. play();

return 0;

}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:50
What does operator overloading allow you to do?
Answers: 2
question
Computers and Technology, 24.06.2019 07:00
Why do we mark tlc plates with pencil and not with pen
Answers: 2
question
Computers and Technology, 24.06.2019 18:30
Is a type of bullying that takes place when a person intentionally posts negative information about another person that is not true.
Answers: 2
question
Computers and Technology, 25.06.2019 14:00
The first few lines of a script that say "using" that point the code to the right groups are called
Answers: 1
You know the right answer?
Write a program in Java following these pseudocode:

class ticTacToe

{
<...
Questions
question
Mathematics, 08.07.2019 10:30
question
Mathematics, 08.07.2019 10:30
question
History, 08.07.2019 10:30
Questions on the website: 13722363