Skip to content

The Tic Tac Toe game implemented in Ruby programming language using standard input/output in ruby and Object-Oriented Programming principles to break down the game logic. Enjoy the game.

Notifications You must be signed in to change notification settings

SamroodAli/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RUBY PROJECT 3: TIC TAC TOE

In this project, we create a Tic Tac Toe game. The main goal is to put into practice the main concepts of Object Oriented Programming. Particularly, classes and access to their attributes.

TIC TAC TOE GAME INSTRUCTIONS

  • Tic Tac Toe is board game played on a board with a 3 squared by 3 squared grid.

  • The players are assigned their own symbols to place on the board cells

  • Player 1 will be assigned the X symbol.

  • Player 2 will be assigned the O symbol.

  • Players take turn to place their symbols on the board.

  • The grid is numbered from 1 to 9.

  • Game grid

  • You place the symbol by choosing the cell number.

  • The First Player to get 3 of her symbols in a row (up, down, across, or diagonally) wins the game.

  • 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.

Built With

  • Ruby

Getting Started

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

Prerequisites

  • Text editor
  • GitHub
  • Git
  • Ruby

Setup

Clone repository from github to your local drive by following these steps:

  • Go to the main page of the repository
  • Above the listed files, click the green Code button
  • You can clone the repository using:
    • SSH: git@github.com:SamroodAli/tic-tac-toe.git.
  • Open Terminal
  • Change the current working directory to the location you want the cloned directory
  • Type one of the git clone commands listed above.
  • Press Enter to create your local clone

Install

  • Install Atom or Microsoft Visual Studio text editor to view the code on your local machine.
  • Install Git.

Running the game

  • Open your terminal
  • Navigate to project directory
  • Enter ./bin/main.rb in your terminal and press Enter.
  • Follow the instructions in the Tic Tac Toe Game Instructions section.
  • Enjoy the game

Authors

👤 MARIJAN BRVAR

Marijan's GitHub stats

👤 SAMROOD ALI

Samrood Ali's GitHub stats

🤝 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

About

The Tic Tac Toe game implemented in Ruby programming language using standard input/output in ruby and Object-Oriented Programming principles to break down the game logic. Enjoy the game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages