Tic Tac Teo Game in Java - Advanced Programming
Task 1:
You need to implement a basic Tic-tac-toe game. Implement a main class called “TicTacToeGame”, which contains some simple methods. You don’t need to change the names of already existing methods but you can add more according to your coding requirements.
The execution of the game is shown below:
- As the program starts executing, player X starts
- The player types in a column and a row number. For example for column A and row 3, it should be ‘A3’.
- The program should verify that the box is not already populated if it is already set then the program asks the player to re-enter a new column and a row. If it is not already populated then set that particular box to X.
- Program checks to verify if there is any winner
- The program prints out the Tictactoe board.
- The program asked player O to type in a column and a row number.
- The program should verify that the box is not already populated if it is already set then the program asks the player to re-enter a new column and a row. If it is not already populated then set that particular box to O.
- Program checks to verify if there is any winner
- The program prints out the Tictactoe board.
- The steps should be repeated until all boxes are populated or a winner is found.
- The program should end.
No Comment to " Tic Tac Teo Game in Java - Advanced Programming "