Skip to content

epinczinger/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TicTacToe

Traditional Tic Tac Toe game implemented in Ruby

Built With

​ Ruby 2.6.5

Live Link

Live link on repl.it

Requirements

To display colors install the 'colorize' GEM

gem install colorize

Getting Started

​To get a local copy up and running follow these simple example steps.​ Git clone https://github.com/epinczinger/TicTacToe

Commands

ruby main.rb

Intructions to Play

Ir order to play, the game needs two players.

After executing the command to run the game, each player is going to be asked to introduce their name and will have a symbol assigned.

A board with nine numbers boxes will be displayed, and the players are going to be requested on each turn to select one number of the empty boxes.

The number of the selected box will be replaced by the user's symbol. If the user doesn't type the number of an empty box, the choice will be declared invalid and the user will be requested to type again.

The first player who fills an entire column, row, or diagonal with their symbol will be the winner.

If none of the players matches that condition, the game will be declared a draw.

Screenshot

screenshot

Authors

👤 Esteban Pinczinger

👤 Giancarlo Dumani

🤝 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!

Acknowledgments

​- This project was part of Microverse's curriculum in Ruby learning program

📝 License

​This project has MIT license.

About

Traditional Tic Tac Toe game implented in Ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages