About | Rules | Built with | Set-up | Live Demo | Author
TicTacToe is a 3x3 grid dual player game that assignes symbols(Xs,Os) to players. The final outcome is either a tie or a win. There are 8 possible winning combinations from a player, player can win by making 3 consecutive moves either vertically, horizontally or diagonally. A player has maximum of 5 possible moves.
- Players have to enter a name
- The system assignes a symbol(X or O) to player
- The player can make moves by pressing a number (of choice) on his/her keyboard
- The position a player is choosing should not have been taking
- The move made by a user should be a number otherwise its an invalid move
- A player can win by making three consecutive moves vertically, horizontally or diagonally
- If all position has been taken and there is no winner then its a tie(draw) For more detailed information on the game rules click here
- Ruby
- To clone the repo to your local repository. Follow this steps
git clone https://github.com/Haroonabdulrazaq/tic-tac-toe.git
cd tic-tac-toe
bin/main.rb
👤 Haroon Abdulrazaq
- Github: @Haroonabdulrazaq
- Twitter: @Hanq_o
- Linkedin: Haroonabdulrazaq
👤 Rumbidzayi Mudziviri
- Github: @Rumbie-Mudzie7
- Twitter: @RumbidzayiMudz3
- Linkedin: rumbidzayimudziviri
👤 Hubert MUGABO
Contributions, issues and feature requests are welcome!
Feel free to check the fork this repo and create pull request if you want to make changes.
Give a ⭐️ if you like this project!