Tic-Tac-Toe
Published 3 October 2026
Round 1 — Coding: Tic-Tac-Toe¶
The first coding problem asked me to implement a playable Tic-Tac-Toe game. The game needed to automatically alternate between the two players after each valid move. After every move, the current board should be printed so that the game state was visible. The implementation also needed to correctly terminate for all three possible outcomes:
- One player wins
- The other player wins
- The board reaches a draw
The follow-up introduced an AI player that should automatically make its own moves while still respecting the same game lifecycle and termination behavior.