Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zappat0n/tic-tac-toe
Console tic-tac-toe game developed in Ruby.
https://github.com/zappat0n/tic-tac-toe
console game ruby
Last synced: 3 days ago
JSON representation
Console tic-tac-toe game developed in Ruby.
- Host: GitHub
- URL: https://github.com/zappat0n/tic-tac-toe
- Owner: Zappat0n
- Created: 2020-11-24T07:39:05.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-27T07:53:16.000Z (almost 4 years ago)
- Last Synced: 2023-09-20T22:31:36.703Z (about 1 year ago)
- Topics: console, game, ruby
- Language: Ruby
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ruby Programming
## TIC_TAC_TOE
Build 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.
## Install & Play the Game
- Clone the project repo
- Make sure [Ruby-lang](https://www.ruby-lang.org/en/) is installed
- Run `ruby bin/main`## Game Play Rules & Details
![screenshot](./screenshots/screenshot.png)
The game board is a grid where each player takes a turn and plays.
- The game starts by prompting both players for their names.
- Player one always starts, then player two
- Symbol ('X') represents player one moves and ('O') represents player two.
- Valid inputs are (a1-a3, b1-b3, c1-c3), representing Row_Number & Column_Name
- In order to win the game, a player must place three of their marks in a horizontal, vertical, or diagonal row.
- There is a draw (or tie) if all cells are occupied without any player meeting the above conditions.## Project Description
The project was implemented in the following milestones:
- Create game and player classes to hold the attributes and methods
- Assigned players name and symbol
- Checks for valid input and moves
- Created Game Flows
- Winner & draw functionality## Designed With
- Ruby
- Git
- Gitflows
- Rubocop
- VS Code
- [Repl.it](https://repl.it/@AngelLuisLuis1/tic-tac-toe)## Contribute to this Project
Contributions, issues, and feature requests are welcome! Start by:
- Forking the project
- Cloning the project to your local machine
- cd into the project directory
- Run git checkout -b your-branch-name
- Make your contributions
- Push your branch up to your forked repository
- Open a Pull Request with a detailed description of the development branch of the original project for a review## Authors
👤 **Muhammad Adeel Danish**
- GitHub: [@bashforger](https://github.com/bashforger)
- Twitter: [@BashForge](https://twitter.com/BashForge)
- LinkedIn: [@adeel](https://www.linkedin.com/Muhammad-adeel-danish)👤 **Angel Barros**
- GitHub: [@Zappat0n](https://github.com/Zappat0n)
- Twitter: [@ngelBarros2](https://twitter.com/ngelBarros2)
- LinkedIn: [LinkedIn](https://www.linkedin.com/in/angel-luis-barros-pazos-8889011b5/)## Show your support
Give a ⭐️ if you like this project!