Skip to content

Salvador-ON/03_Tic_Tac_Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microverse - Ruby Section - Tic Tac Toe

This project creates a console-like game of Tic Tac Toe that allows the user to interact in a multiplayer game.

Getting Started

To get started, you should first get this file in your local machine by downloading this project or typing

git clone https://github.com/Salvador-ON/03_Tic_Tac_Toe.git

or you could play it online here, and skip the Prerequisites & Running the Program steps.

Prerequisites

Before you start playing the game, you need to be sure that you have ruby installed in your computer, by typing

ruby -v

and it should return something like

####### ruby 2.6.##### (20##-##-## revision 6####) [########]

If it's not installed in your system, follow this guide and it will help you te get it done

Rules

  1. The game is played on a grid that's 3 squares by 3 squares.

  2. You are X, your friend is O. Players take turns putting their marks in empty squares.

  3. The first player to get 3 of her marks in a row (up, down, across, or diagonally) is the winner.

  4. When all 9 squares are full, the game is over. If no player has 3 marks in a row, the game ends in a tie.

Running the Program

For the online version to start the program You only need to click on the Run Button.

For the local machine version, You need to open your terminal and go to the downloaded folder, and You need to run the next command.

ruby bin/main.rb

Built With

Test-driven development RSPEC

The code includes unit testing using RSpec. To start the test run the next line in your terminal:

rspec

Authors

Salvador Olvera

Daniel Laloush

Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a start if you like this project!

Acknowledgments

  • Thanks to Microverse!

License

This project is MIT licensed.

About

Tic Tac Toe built with Ruby and OOP principles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages