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:

  1. Initializing the game state and displaying the initial grid having all empty spaces
  2. Displaying the proper message of who’s turn it is
  3. Taking inputs from the player whose turn it is
  4. Validating the move
  5. Updating the board
  6. Printing the updated board
  7. Turn change
  8. 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.