Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/murodjon000/tictactoe
https://github.com/murodjon000/tictactoe
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/murodjon000/tictactoe
- Owner: Murodjon000
- Created: 2021-01-04T07:50:58.000Z (about 4 years ago)
- Default Branch: development-branch
- Last Pushed: 2021-01-06T13:38:52.000Z (about 4 years ago)
- Last Synced: 2024-11-09T20:14:59.267Z (2 months ago)
- Language: Ruby
- Size: 310 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TicTacToe Game
> This is a Tic-Tac-Toe game built using OOP in Ruby.
## What is the Tic-Tac-Toe game
- Tic-tac-toe - [Wikipedia](https://en.wikipedia.org/wiki/Tic-tac-toe)
**Tic-tac-toe** (American English), noughts and crosses (Commonwealth English), or Xs and Os/“X’y O’sies” (Ireland), is a paper-and-pencil game for two players, X and O, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner. It is a solved game with a forced draw assuming best play from both players.## Content
* [Gameplay Instructions](#gameplay-instructions)
* [Built With](#built-with)
* [Quick Start](#quick-start)
* [Dependencies](#dependencies)
* [Contributing](#contributing)
* [Acknowledgments](#acknowledgments)
* [Author](#author)
* [License](#license)## Gameplay Instructions
- Find someone to play with.
- As the file is executed the game will ask you to first input Player X name. The same will be repeated for player O.
- Player X will be prompted to enter a number from 1-9 representing a field in the tic-tac-toe grid(3x3), once the player obliges, his symbol will be marked in his selected spot.
- Player O will be asked to repeat as above.
- The game will keep alternating players until a win or draw is achieved.
To win the game, a player must fill out a line with his symbol vertically, horizontally, or diagonally.
- A draw is reached when neither player manages the above and the grid is filled.
### Built With
- Ruby Language
- Git, Github and VScode## Quick Start
To get a local copy use:
```js
git clone https://github.com/Murodjon000/TicTacToe.git
```
## Author👤 **Murodjon000**
- GitHub: [@Murodjon000](https://github.com/Murodjon000)
- Twitter: [@Murodjon](https://twitter.com/Murodjo91836152)
- LinkedIn: [murodjon-tursunpulatov](https://www.linkedin.com/in/murodjon-tursunpulatov-5189481b3/)### Dependencies
Ruby 2.5.5
### Contributing
Contributions, issues and feature requests are welcome!
You can do it on [issues page](issues/).
## Show your supportGive a ⭐️ if you like this project!
## Acknowledgments
A special thanks for the code reviewers
## 📝 License
This project is [MIT](https://en.wikipedia.org/wiki/MIT_License) licensed.