Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emmanuelaaron/tic-tak-toe
https://github.com/emmanuelaaron/tic-tak-toe
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/emmanuelaaron/tic-tak-toe
- Owner: Emmanuelaaron
- Created: 2020-05-11T19:13:30.000Z (over 4 years ago)
- Default Branch: development
- Last Pushed: 2020-06-03T14:52:16.000Z (over 4 years ago)
- Last Synced: 2024-11-20T18:34:04.828Z (about 2 months ago)
- Language: Ruby
- Size: 43 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tic-Tac-Toe Project
## Game Instructions!
We built 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.
It was made as a collaborative project in Ruby using OOP concepts.# What It Does
The game collects input from the users and replaces the board positions based on the user inputs with their individual characters.
To win the game, a player has to have 3 of their characters in a row (vertically, horizontally or diagonally).# Preview
![Tic-Tac-Toe](https://user-images.githubusercontent.com/57812000/82552224-54629c80-9b27-11ea-9182-d4f7f26443a1.png)# Live Demo
[Tic Tac Toe](https://repl.it/@Jamezjaz/Tic-Tac-Toe)# Built With
- Ruby
- Rubocop
- vscode# Getting Started
To get a local copy up and running follow these simple example steps.
Clone this repo in your local machine, cd to the directory and run `bin/main.rb` on your terminal# Instructions To Play
- The game is played on a grid that's 3 squares by 3 squares.```
1|2|3
4|5|6
7|8|9```
- Input your name when it prompts for player's name and hit "Enter"
- Player1's character is "X" and Player2's character is "O"
- Players take turns putting their characters on the board with numbers from 1 - 9.
- The first player to get 3 of their characters in a row (vertically, horizontally or diagonally) is the winner.
- When all 9 squares are filled up, the game is over. If no player has 3 characters in a row, the game ends in a tie.
- You can restart the game if you wish to!# Prerequisites
- Get [ruby](https://www.ruby-lang.org/en/downloads/) latest version installed## Authors
👤 **Odufu James Chigozie**
- Github: [@Jamezjaz](https://github.com/jamezjaz)
- Twitter: [@Jamezjaz](https://twitter.com/jamezjaz90)
- Linkedin: [@Jamezjaz](https://linkedin.com/in/james-odufu-ba2a4a125)👤 **Emmanuel Isabirye**
- Github: [@EmmanuelAaron](https://github.com/Emmanuelaaron)
- Twitter: [@EmmanuelAaron](https://twitter.com/EmmanuelIsabir1)
- Linkedin: [@EmmanuelAaron](https://www.linkedin.com/in/fullstackwebdev-emma/)## 🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check the [Issues page](https://github.com/Emmanuelaaron/tic-tak-toe/issues).## Acknowledgments
- Hat tip to [Microverse](https://microverse.org)# Show your support
Give a ⭐️ if you like this project!Enjoy!