/TicTacToe_Ruby

Mini game to play on command line.

Primary LanguageRuby

Tic Tac Toe

A quick classic mini game to play by command line.

screenshot


The focus here is to use oriented programming concepts.
The project specifications can be see in Odin Project

Content

Game rules.

  • Two players play
  • Each play draw X or O alternately on board
  • The game ends when someone get 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

Live Demo

To play online, go to the page and hit (Run) button. Run on Repl.it

Quick Start

Get a local copy with:

git clone git@github.com:SevlaMare/TicTacToe_Ruby.git

Or just hit (Download Zip) on green button (Clone or Download) 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)
ruby bin/main.rb

For linux:

bin/main.rb

Dependencies

Ruby 2.5.5

Contributing

Contributions, issues and feature requests are welcome!

You can do it on issues page.

Acknowledgments

A special thanks for the code reviewers.

Author

👤 Thiago Miranda

License

Creative Commons