Skip to content

Cyrus-Kiprop/tic-tac-toe-OOP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TicTacToe

Table of Contents

About The Project

Recreation of the classic TicTacToe game

screenshot

Game rules

  • The game is play on a grid that is 3x3 squares
  • Player 1 (you) has the token "X" and Player two (your friend) has the token "O"
  • Player takes turns putting their tokens in the empty cells in the grid
  • first player to get three of his/her in row (upper, middle , or bottom) or columns(left, center, right) or the diagonals (across or the leading diagonal) is the winner
  • when all the 9 cells are filled and there is no winner the game is considered a draw.

Pre-requisites

  • Make sure you have ruby installed on your computer
  • gem install bundler =>gem file to manage ruby gems
  • A terminal bash for linux or cmd for windows

Installing the game

  • on the search function of your computer type "cmd" to open a terminal
  • on the terminal run the following commands:
  • "bundle install" for easy management of gems files
  • Git clone(download) the project by running "git clone https://github.com/Cyrus-Kiprop/tic-tac-toe-OOP"
  • cd into the project folder
  • Run bundle install
  • cd into bin "cd ./bin"
  • make the main file executable on linux, windows or run "ruby main"
  • Enjoy the GAME!!

Built With

This project was built using Ruby.

Authors

👤 Alexis Sanchez

👤 Cyrus Kiprop

🤝 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

This is a tic tac toe game logic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages