Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/notengobattery/tic-tac-toe

Implementation of Tic Tac Toe in Ruby
https://github.com/notengobattery/tic-tac-toe

Last synced: about 1 month ago
JSON representation

Implementation of Tic Tac Toe in Ruby

Awesome Lists containing this project

README

        

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

# Tic-Tac-Toe

> This is the third project on the Microverse Ruby Module. It is about creating a playable CLI Version of the game Tic-tac-toe for two players.

At the start of the game, you will be prompted to enter the name of player one. Player one will be the "X" symbol.
Then you will be prompted to enter the name of player two. Player two will be the "O" symbol.
Players take turns placing their respective symbols on a 3x3 grid. The first player to place 3 sequential symbols in a row, column, or diagonal wins the game.
If neither one of the players manages to place 3 consecutive symbols the game ends in a draw.

The 3x3 grid is numbered from top-left to bottom-right with the numbers 1, 2, 3, 4, 5, 6, 7, 8, and 9 (a representation of the grid will be shown before you are prompted to chose).
To place your symbol on the grid just type the number that corresponds to the position in which you want to place the symbol, and then press enter.

## Built With

- Ruby
- Rubocop

## Live Demo

[![Run on Repl.it](https://repl.it/badge/github/acushlakoncept/Enumerable)](https://repl.it/@NoTengoBattery/tic-tac-toe#bin/main.rb)

## Getting Started

- Clone this repository to your local machine.
- Open your terminal.
- From Inside the terminal, go to the "bin" directory inside the "tic-tac-toe" directory you cloned.
- Type main.rb

or

- Clone this repository to your local machine.
- Go to the "bin" directory inside the "tic-tac-toe" directory you cloned.
- Open the file main.rb

### Prerequisites

- Ruby

## Authors

👤 **Author1**

- GitHub: [@NoTengoBattery](https://github.com/NoTengoBattery)
- Twitter: [@notengobattery](https://twitter.com/notengobattery)
- LinkedIn: [José Oever González Hernández](https://www.linkedin.com/in/NoTengoBattery/)

👤 **Author2**

- GitHub: [@jpdf00](https://github.com/jpdf00)
- Twitter: [@jpdf00](https://twitter.com/jpdf00)
- LinkedIn: [João Paulo Dias França](https://linkedin.com/linkedinhandle)

## 🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the [issues page](https://github.com/NoTengoBattery/tic-tac-toe/issues).

## Show your support

Give a ⭐️ if you like this project!

## 📝 License

This project is [MIT](https://opensource.org/licenses/MIT) licensed.