A game of tic-tac-toe in the CLI using Ruby, in partial fulfilment of the Microverse Cirricullum.
- Ruby
- Rubocop
The object of Tic Tac Toe is to get three in a row. You play on a three by three game board. The first player is known as X and the second is O. Players alternate placing Xs and Os on the game board until either opponent has three in a row or all nine squares are filled. X always goes first, and in the event that no one has three in a row, the stalemate is called a cat game.
This game can be played only against another human player and on a single command line.
- Start the game by following the instructions below.
- Enter your names when promted.
- Take turns as guided on-screen.
- You can play the game again at the end of a round.
Clone the repository to your local machine
$ git clone https://github.com/simonpeterdebbarma/tic-tac-toe.git
Go to your directory
$ cd tic-tac-toe
Run in terminal [You must have Ruby installed on your system.]
$ ruby bundle install
the command bundle install is important to install required gem for the game to start. After you finish type:
$ ruby bin/tic-tac-toe
👤 Certil Remy
- Github: @certilremy
- Twitter: @certilremy
- Linkedin: Linkedin
👤 Simon Peter Debbarma
- Github: @simonpeterdebbarma
- Twitter: @SimonLikelySaid
- Linkedin: Linkedin
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
This project is MIT licensed.