Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/murodjon000/tictactoe


https://github.com/murodjon000/tictactoe

Last synced: 2 days ago
JSON representation

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


  1. Find someone to play with.

  2. As the file is executed the game will ask you to first input Player X name. The same will be repeated for player O.

  3. 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.

  4. Player O will be asked to repeat as above.

  5. The game will keep alternating players until a win or draw is achieved.


  6. To win the game, a player must fill out a line with his symbol vertically, horizontally, or diagonally.

  7. 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 support

Give 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.