1. Pedro Ferreira
  2. tic_tac_toe

Overview

HTTPS SSH

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).

Run

swift build && .build/debug/tic_tac_toe --- Build an run the game.

Dependencies