Skip to content

NoTengoBattery/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe

This is the third project on the Microverse Ruby Module. It is about creating a playable CLI Version of the game Tic-tac-toe for two players.

At the start of the game, you will be prompted to enter the name of player one. Player one will be the "X" symbol. Then you will be prompted to enter the name of player two. Player two will be the "O" symbol. Players take turns placing their respective symbols on a 3x3 grid. The first player to place 3 sequential symbols in a row, column, or diagonal wins the game. If neither one of the players manages to place 3 consecutive symbols the game ends in a draw.

The 3x3 grid is numbered from top-left to bottom-right with the numbers 1, 2, 3, 4, 5, 6, 7, 8, and 9 (a representation of the grid will be shown before you are prompted to chose). To place your symbol on the grid just type the number that corresponds to the position in which you want to place the symbol, and then press enter.

Built With

  • Ruby
  • Rubocop

Live Demo

Run on Repl.it

Getting Started

  • Clone this repository to your local machine.
  • Open your terminal.
  • From Inside the terminal, go to the "bin" directory inside the "tic-tac-toe" directory you cloned.
  • Type main.rb

or

  • Clone this repository to your local machine.
  • Go to the "bin" directory inside the "tic-tac-toe" directory you cloned.
  • Open the file main.rb

Prerequisites

  • Ruby

Authors

👤 Author1

👤 Author2

🤝 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

Implementation of Tic Tac Toe in Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages