Skip to content

This project consists of building a Ruby terminal version of Tic Tac Toe, using classes and methods as set-up elements for the game.

License

Notifications You must be signed in to change notification settings

anapdh/tictactoe-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

This project consists of building a Ruby version of Tic Tac Toe game Tic Tac Toe using Ruby.

About the project

The goal was to use classes and methods to set up the basic elements of the game.

The specifications for this project can be found at The Odin Project.

Installation

No instalation needed, just download/clone this repository GitHub Repository on your computer.

How to play

  1. The interface of this game will be your computer's terminal. Search terminal in your computer to open it.
  2. In the terminal, use the command cd to go to the place where you have saved/cloned the Tic Tac Toe repository. For example: Desktop/User/tic-tac-toe/. You may use the comand ls to see the files and repositories exitent in your current location.
  3. Now, use the comand cd bin again to enter the folder and execute ruby main.rb in the terminal to start the game.
  4. Enjoy the game!

Game rules

  1. Type the name of Player1, which will be signed to the symbol 'X';
  2. Type the name of Player2, which will be signed to the symbol 'O';
  3. Now the first player ('X') can select any space to insert the value, follow your number keyboard to compare the available spaces:
   7 | 8 | 9
   -----------
   4 | 5 | 6	--> The number in the virtual board will be represented by the number on your keyboard.
   -----------
   1 | 2 | 3
  1. Remember not to insert any invalid number (above 9) or repeat the same number that is already taken by a symbol (no cheating!!);
  2. The winner will be the first player/symbol to complete a sequence of a row, column, or diagonal.

Authors

👩🏼‍💻 Ana Paula Hübner

😎 Abdo Amin

🤝 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 project consists of building a Ruby terminal version of Tic Tac Toe, using classes and methods as set-up elements for the game.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages