carlos-ssh / Ruby-Tic-Tac-Toe

Its a ticktacktoe game where you can play with other user. this game was built-ed with ruby and you can try it over IRB Console.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ruby Tic-Tac-Toe

On this project, we are creating a Terminal Tic-Tac-Toe game, using Ruby and following Object Oriented Programming and DRY rules.

Built With

  • Ruby
  • Rubocop

Game Rules

This is a very simple Tic Tac Toe Game and it's played as follows:

  • This game is a 1 vs 1 table game
  • You will see a 3 by 3 board with 9 spaces in total
  • Players take turns to place their symbol (X or O) in an available space
  • Available spaces are those that doesn't have a symbol in it
  • The objective is to place 3 symbols in any vertical, horizontal, or diagonal row
  • If all spaces are taken and none of the player have won, the game ends in a draw

Getting Started

To Play this game you need to make a local copy of the repo or play it online on the live version

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

Install

  • Open your Command Line or Terminal
  • Clone this repo using this command: git clone https://github.com/Miguelus373/Ruby-Tic-Tac-Toe.git

Set the Permissions

Mac/Linux:

  • Go into the repo folder
  • And into the bin Folder
  • Run this command: chmod 755 main.rb

Usage

Local: Run this command bin/main.rb

OnLine: Go to this live demo and click Run.

How to play

  • Use the numbers on the board to select where to make your move (1 - 9)
  • If you select a diferent character or number that is not on the board, you will see a warning message

Authors

👤 Carlos Flores Robles

👤 Miguel Uzcátegui

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

📝 License

This project is MIT licensed.

About

Its a ticktacktoe game where you can play with other user. this game was built-ed with ruby and you can try it over IRB Console.


Languages

Language:Ruby 100.0%