Skip to content

noobiept/tic_tac_toe

Repository files navigation

Tic-tac-toe console game

Promotion Image

Installation

  • brew tap noobiept/tap
  • brew install tic_tac_toe

Then run the tic_tac_toe command in the terminal.

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

Development

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

About

Tic-tac-toe console game written in swift.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages