https://github.com/haroonabdulrazaq/tictactoe
(Solo)TicTacToe is a 3x3 grid dual player game that assigns symbols(Xs, Os) to players. The final outcome is either a tie or a win. There are 8 possible winning combinations from a player, the player can win by making 3 consecutive moves either vertically, horizontally or diagonally. A player has a maximum of 5 possible moves.
https://github.com/haroonabdulrazaq/tictactoe
game ruby solo
Last synced: 4 months ago
JSON representation
(Solo)TicTacToe is a 3x3 grid dual player game that assigns symbols(Xs, Os) to players. The final outcome is either a tie or a win. There are 8 possible winning combinations from a player, the player can win by making 3 consecutive moves either vertically, horizontally or diagonally. A player has a maximum of 5 possible moves.
- Host: GitHub
- URL: https://github.com/haroonabdulrazaq/tictactoe
- Owner: Haroonabdulrazaq
- Created: 2020-07-22T10:29:04.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-22T21:10:07.000Z (almost 6 years ago)
- Last Synced: 2025-07-11T07:25:20.754Z (12 months ago)
- Topics: game, ruby, solo
- Language: Ruby
- Homepage:
- Size: 9.77 KB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tic Tac Toe Game
[]()
[]()
[]()
## Content
About |
Rules |
Built with |
Set-up |
Live Demo |
Author
## About
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.
## Rules
- Players have to enter a name
- The system assignes a symbol(X or O) to players
- 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 ](https://www.thesprucecrafts.com/tic-tac-toe-game-rules-412170)
- Ruby
[Run on Repl.it](https://repl.it/@Haroon136/tictactoe#Logic.rb)
- To clone this repo to your local repository. Follow these steps
- git clone https://github.com/Haroonabdulrazaq/tictactoe.git
- cd tictactoe
- ruby Logic.rb
👤 **Haroon Abdulrazaq**
- Github: [@Haroonabdulrazaq](https://github.com/Haroonabdulrazaq)
- Twitter: [@Hanq_o](https://twitter.com/Hanq_o)
- Linkedin: [Haroonabdulrazaq](https://www.linkedin.com/in/haroonabdulrazaq)
## 🤝 Contributing
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.
## 👍 Show your support
Give a ⭐️ if you like this project!
## :thumbsup: Acknowledgements
[theOdinproject](https://theodinproject.com)