This project is a Tic-Tac-Toe game implemented in Go. It features both user and computer players with a random turn order. You can play the game in the command line or in a web browser.
- Clone the repository
git clone git@github.com:rileychh/go-tic-tac-toe.git
- Navigate to the project directory
cd go-tic-tac-toe
- Run the game
# CLI version
go run cmd/cli/*
# Web version
go run cmd/web/*
The game is played on a grid that's 3 squares by 3 squares. At the start of the game, you can choose to play as either X or O. The computer will play as the other symbol. Players take turns putting their marks in empty squares. The first player to get 3 of her marks in a row (horizontally, vertically, or diagonally) is the winner. When all 9 squares are full, the game ends with a tie.