Tic-tac-toe console game written in swift.

Promotion Image

Bot Logic

The bot first tries to complete a row, either to win the game or deny the win to the opponent. Otherwise it plays at random.

This is not the perfect way to play, so its still possible to win the game (otherwise it would draw every time).


  • swift run --- Build and run the game.