Gomoku Stage 1: Try It Yourself
Test your problem-solving skills in this challenging Gomoku n-player exercise.
We'll cover the following
We want you to make the first attempt at making the game’s basic structure. We are calling it stage 1. It includes the following steps:
- Initializing the game state and displaying the initial grid having all empty spaces
- Displaying the proper message of who’s turn it is
- Taking inputs from the player whose turn it is
- Validating the move
- Updating the board
- Printing the updated board
- Turn change
- Repeating steps 2-7 for the next player
There are no stopping criteria for ending stage 1. The game should allow two players to play turn by turn, infinitely.
Get hands-on with 1200+ tech skills courses.