Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

A tic-tac-toe game built with the Ruby language and played on the terminal or command line. Testing was done with Rspec.
https://github.com/ebeagusamuel/tic-tac-toe

Last synced: 12 days ago
JSON representation

A tic-tac-toe game built with the Ruby language and played on the terminal or command line. Testing was done with Rspec.

Awesome Lists containing this project

README

        

# Tic Tac Toe
Command line based Tic Tac Toe game built with Ruby

## Getting Started

To get a local copy up and running follow these simple example steps.

- Clone or download this repository to your local workstation.
- cd into the tic-tac-toe folder
- Run 'bin/main.rb' in your terminal to start the game.

### Prerequisites

Since all the code is written using ruby `Ruby Runtime >= 1.9` ruby is required to interpret the code. if you don't have ruby runtime installed on your computer follow the instruction for your specific operating system on the [official installation guide](https://www.ruby-lang.org/en/documentation/installation/)

### Usage
- Run 'bin/main.rb' in your terminal to start the game.
- Next you will be promted to enter each players name and each player will be assigned a symbol to use in the game.
- Now you are ready to play the game

### Game Rules

1. The game is played on a grid that's 3 \* 3 square of tiles
2. Each player registers into the game by providing his/her name and then a symbol will be assigned them.
3. First player to get 3 of his/her marks in a row (horizontally, Vertically or diagonally) is the winner.
4. When all 9 tiles are full but if no player has 3 marks in a row, the game ends in a tie.
5. After each game, you will be asked to enter 'Y' to play the game again. Entering any other key ends the game.

## Author

👤 **Samuel Ebeagu**

- Github: [@ebeagusamuel](https://github.com/ebeagusamuel)
- Twitter: [@ebeagu_samuel](https://twitter.com/ebeagu_samuel)
- Linkedin: [linkedin](https://www.linkedin.com/in/samuel-ebeagu-7b4617110/)

👤 **Christopher Amanor**

- Github: [@krys2fa](https://github.com/krys2fa)
- Twitter: [@krys2fa](https://twitter.com/krys2fa)
- Linkedin: [Christopher Amanor](https://www.linkedin.com/in/christopher-amanor-81a7b93b/)
- Email: [Christopher Amanor](mailto:[email protected])

## 🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the [issues page](issues/).

## Show your support

Give a ⭐️ if you like this project!

## 📝 License

This project is [MIT](lic.url) licensed.