Skip to content

SevlaMare/TicTacToe_Ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

A quick classic mini-game to play by command line.

screenshot


The focus here is to explore object-oriented programming concepts.

Content

Live Demo

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

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:

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)
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 to the code reviewers.

Author

👤 Thiago Miranda

License

Creative Commons

Releases

No releases published

Packages

No packages published

Languages