Time To Code: Task I to III
Get hands-on practice by coding a few programming tasks.
Task I: Create a Tic-tac-toe board
Our task is to create a 3x3 game board.
Task II: Display the game board
Our task is to print the Tic-tac-toe board we created in the first task.
Let’s write the displayBoard
method with the following signature:
public static void displayBoard(char[][] game_board)
This takes the game_board
as input and then prints it.
Note: To test your logic and implementation for all the tasks in this project, write your code within the commented block. In the code widget, replace
/* Write your code here */
with your code. To run the program, click the “Run” button. To write and test your code implementation please uncomment the code line 9.
Get hands-on with 1400+ tech skills courses.