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

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.

Awesome Lists containing this project

README

          

# Tic Tac Toe
> A quick classic mini-game to play by command line.

![screenshot](./images/screenshot.png)


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


    Features


  • Get a valid user input

  • Display board after each move

  • End game if someone win

  • End game if board become full

### 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