Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/aleksandarivezic/tic-tac-toe_ruby-project

A simple Tic-Tac-Toe multiplayer game built using Ruby. You can follow the live demo link from the readme file and enjoy playing yourself.
https://github.com/aleksandarivezic/tic-tac-toe_ruby-project

Last synced: 1 day ago
JSON representation

A simple Tic-Tac-Toe multiplayer game built using Ruby. You can follow the live demo link from the readme file and enjoy playing yourself.

Awesome Lists containing this project

README

        

![](https://img.shields.io/badge/Microverse-blueviolet)

# Tic-Tac-Toe_Ruby-project

> In this project we are going to make a Tic-Tac-Toe game using Ruby.
>
> This project is 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.

- Player 1 name input :

![screenshot](./screenshots/Enter-player-1.png)

- Gameplay :

![screenshot](./screenshots/Player-1-turn.png)

- Gameover announce the winner :

![screenshot](./screenshots/The-end-of-the-game.png)

## Built With

-Ruby

## Live Demo

[Live Demo Link](https://replit.com/@safaaballagh/Tic-Tac-ToeRuby-project#.replit)

## Getting Started

### Prerequisites
- Ruby installed

### Setup

- To download this repository go on this page [Tic-Tac-Toe](https://github.com/ShinobiWarior/Tic-Tac-Toe_Ruby-project) and click on the Code button
- Then you can choose to download it as a ZIP file or copy HTTPS/ssh address and clone it using Terminal or Bash in your local machine.
- Enter the file of the Repository with your Terminal/Bash and run "./bin/main.RB"

-To run it remotely you can follow the link [Tic-Tac-Toe-Game](https://replit.com/@safaaballagh/Tic-Tac-ToeRuby-project#.replit)

## RULES FOR TIC-TAC-TOE

1. The game is played on a grid that's 3 squares by 3 squares marked by numbers from 1 to 9

2. The first player is X, the second one is O. Players take turns putting their marks in empty squares typing in a number of the square they choose.

3. The first player who gets 3 of his/her marks in a row (up, down, across, or diagonally) is the winner.

4. When all 9 squares are full, the game is over. If no player has 3 marks in a row, the game ends in a draw.

If you want extra information about the game rules, check this link from [Wikipedia](https://en.wikipedia.org/wiki/Tic-tac-toe)

## Authors

👤 **Safa Aballagh**

- GitHub: [@Safafa](https://github.com/safafa)
- Twitter: [@safa aballagh](https://twitter.com/Aballagh_S)
- LinkedIn: [Aballagh Safa](https://www.linkedin.com/in/aballaghsafa/)

👤 **Aleksandar Ivezic**

- GitHub: [@Aleksandar Ivezic](https://github.com/ShinobiWarior)
- Twitter: [@AIvezic](https://twitter.com/AIvezic)
- LinkedIn: [Aleksandar Ivezic](https://www.linkedin.com/in/aleksandar-ivezic/)

## 🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the [issues page](https://github.com/ShinobiWarior/Tic-Tac-Toe_Ruby-project/issues).

## Acknowledgments

- This project was inspired by [Microverse](https://www.microverse.org/?grsf=w9rx3c)

## Show your support

Give a ⭐️ if you like this project!