Skip to content

Latest commit

 

History

History
88 lines (54 loc) · 2.35 KB

README.md

File metadata and controls

88 lines (54 loc) · 2.35 KB

Command Line Tic Tac Toe

Welcome to Command Line Tic Tac Toe. Tic Tac Toe is a two player game, in which players take turns placing their marker, either an X or an O, on a 3 by 3 grid. The player that successfully places three of their markers in a horizontal, diagonal or vertical row wins. If the board is full and no player has succeeded completing a row of three, it's a draw.

example

screenshot

Built With

  1. Ruby

How to play online

Click on the Game Link below to start playing online!

Game Link

  1. Click on the link above to play online on repl.it
  2. Wait for the terminal on the right to complete loading
  3. Enter bin/main.rb to start playing and follow the in-game instructions.

How to play on your local machine

To get a local copy up and running follow these simple example steps.

  1. You need to have Ruby installed on your computer to run this game.
  2. You should be able to run terminal, command prompt, bash or Powershell to open your command line.
  3. Run git clone https://github.com/m15e/tic-tac-toe to clone this repository to your local machine.
  4. Run cd tic-tac-toe to go to the game folder.
  5. Run bin/main.rb to start the game and follow the in-game instructions.

Prerequisites

  • Ruby
  • Commandline, Terminal, Prompt, Bash or Powershell
  • Rspec for testing

Run Tests using Rspec

Installing Rspec

  1. Installing Rspec
$ gem install rspec
  1. Running tests with Rspec

To run tests run the following code in the command line from the root directory.

$ rspec

Authors

👤 Mark Rode

👤 Clayton Siby

👤 Guy Gustave Nigaba

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • The Odin Project
  • Microverse

This project is MIT licensed.