brew tap noobiept/tap
brew install tic_tac_toe
Then run the tic_tac_toe
command in the terminal.
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.