Skip to content

errea/TIC-TAC-TOE

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby's TIC TAC TOE

This is a Tic Tac Toe game all made with ruby as a project, the is made to work for 2 players, each player needs to choose on which location they want to add its mark until one of them has 3 marks on a row, and he will be declared the winner.

Built With

  • Ruby

Prerequisites

  1. VSCode

  2. Terminal (Bash)

  3. Linter tests

  4. Git

  5. Ruby

Getting Started

To get a local copy up and running follow these simple example steps below (from setup - installation).

Setup

Setup by following the installation instructions below :

  • Open your terminal and locate on the folder you want to clone the repository.

Install

Run the following command into your terminal:

git clone git@github.com:JAAR91/Enumerable-Methods.git

How to Start the Game

  • After running the Setup and installation right above

  • On the console type bin/main.rb

Game rules

These are the rules to play the Tic-Tac-Toe👋🤓

 The game consist of 2 players switching turns and marking a place on a grid that's 3 
 squares by 3 squares as described in the image below
                                +-----+-----+-----+
                                |  1  |  2  |  3  |
                                +-----+-----+-----+
                                |  4  |  5  |  6  |
                                +-----+-----+-----+
                                |  7  |  8  |  9  |
                                +-----+-----+-----+

You are X, your friend  is O. The first player to get 3 of her marks in a row (up, down, 
across, or diagonally) is the winner. You can win by having a line of  3 O/X. The lines 
can be horizontal, vertical or diagonal in both opposite directions. You can only win if 
you manage to have O or X cutting across equally either diagonally, horizonatally or 
vertically, but if  no one can complete a line of 3 O/X THEN it's a tie. When all 9 
squares are full, the game is over

Usage

Run the following command into your terminal:

ruby bin/main.rb

Authors

👤 Eri Okereafor

👤 Jose Alberto Arriaga Ramos

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the [issues page](Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Thanks to Microverse and their supportive community.
  • Thanks to everyone commiting in this project.

📝 License

This project is MIT licensed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%