https://github.com/sevlamare/tictactoe_ruby
Mini game to play on command line.
https://github.com/sevlamare/tictactoe_ruby
object-oriented-programming ruby
Last synced: 2 months ago
JSON representation
Mini game to play on command line.
- Host: GitHub
- URL: https://github.com/sevlamare/tictactoe_ruby
- Owner: SevlaMare
- Created: 2020-04-03T16:56:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-07T16:28:16.000Z (almost 5 years ago)
- Last Synced: 2025-04-28T10:16:11.005Z (5 months ago)
- Topics: object-oriented-programming, ruby
- Language: Ruby
- Homepage: https://repl.it/@ThiagoMiranda2/tictactoeruby
- Size: 83 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tic Tac Toe
> A quick classic mini-game to play by command line.
The focus here is to explore object-oriented programming concepts.## Content
* [Live Demo](#live-demo)
* [Requirements](#requirements)
* [Built With](#built-with)
* [Quick Start](#quick-start)
* [Dependencies](#dependencies)
* [Contributing](#contributing)
* [Acknowledgments](#acknowledgments)
* [Author](#author)
* [License](#license)## Live Demo
To play online, go to the page and hit the (Run) button.
[Run on Repl.it](https://repl.it/@ThiagoMiranda2/tictactoeruby)## Game rules.
* Two players play
* Each play draw X or O alternately on board
* The game ends when someone gets 3 marks in a row
* The row can be vertical, horizontal or diagonal## Requirements
- Get a valid user input
- Display board after each move
- End game if someone win
- End game if board become full
Features
### Built With
- Ruby Language
- Rubocop (Linter) with Stickler (CI Tool)
- Rspec (Unit testing)
- Git (with Gitflow), Github and VScode
## Quick Start
#### Get a local copy with:
```js
git clone git@github.com:SevlaMare/TicTacToe_Ruby.git
```
Or just hit (Download Zip) on the green button (Code) on top of this page.
#### Run on terminal/prompt:
If you are on windows:
* Go inside the project folder
* Right shift '+' right mouse click (Float menu)
* Open prompt here (Option)
```js
ruby bin/main.rb
```
For linux:
```js
bin/main.rb
```
### Dependencies
Ruby 2.5.5
### Contributing
Contributions, issues and feature requests are welcome!
You can do it on [issues page](issues/).
## Acknowledgments
A special thanks to the code reviewers.
## Author
👤 **Thiago Miranda**
- Github: [@SevlaMare](https://github.com/SevlaMare)
- Twitter: [#SevlaMare)](https://twitter.com/SevlaMare)
- Linkedin: [SevlaMare)](https://www.linkedin.com/in/sevla-mare)
### License
Creative Commons