A tic-tac-toe game on the command line where two human players can play against each other and the board is displayed in between turns, created with Ruby.
- Ruby
- In order to win the game, a player must place three of their marks in a horizontal, vertical, or diagonal row.
- Copy this link
- Open your terminal or command line
- Run
git clone
and Paste the link - Open the folder with your code editor
- Create a branch to work on
- Now You can edit the code and do a pull request
- After clonning the project, the player should run
./bin/main.rb
at the root of the project in the terminal. - The players should enter their names and the first player will play with X and the second with O.
- Players will take turns marking their spots on the board.
- The first player who matches three spots in a horizontal, vertical, or diagonal row. is the winner.
- When the spots on the board are all marked with no matches, then, the game ends in a draw.
👤 Zeenat Lawal
- GitHub: @ZeenatLawal
- Twitter: @lawal_zeenat
- LinkedIn: Zeenat Lawal
👤 Baraka Mukelenga
- GitHub: @barackm
- Twitter: @BarakaMukelenga
- LinkedIn: Baraka Mukelenga
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!