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. It was built purely on ruby programming language.
To get a local copy up and running follow these simple example steps.
- Go to the main page of the repo.
- Press the "Code" button and get the repo link.
- paste the repository link on the like:
git clone [git-address]
- on the CLI, run
bin/main.rb
to initialize the game.
This game was tested using RSpec which is a ruby testing tool. We tested all the public methods of the project Tic Tac Toe.
- Open the terminal window and type rspec
Tic tac toe is a game of two players. Each players chooses chooses a name and an icon as an input. The resulting board contains 9 cells, each of which is to be filled in turns by the two players until there is no empty slot. As soon as the cell's slot are all filled, the game either comes to an end when there is no winner or when a player accumulating icons makes a straight either ways on the board. when this happens, there is a WINNER. The game allows for match on the board on vertical, horizontal and even diagonals for a win. The player 1 puts his/her name at the prompt to do so do player2. They also choose their icon.
- Players are not to select an already selected slot.
- You choose a number as visible on the board.
👤 Daniel Ufeli
- Github: @danielufeli
- Twitter: @danielufeli
- Linkedin: danielufeli bust_in_silhouette Daniel Ufeli
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
This project is MIT licensed.