Skip to content

This project consists of a Ruby version of the Tic Tac Toe game. You and a friend can play it directly at the terminal.

License

Notifications You must be signed in to change notification settings

VanessaAoki/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TicTacToe

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

Getting Started

Prerequisites

To run this project, you need a computer with Ruby installed.

If you are uncertain on how to install Ruby, check out this tutorial made by The Odin Project.

How to Play

In your local enviroment:

  1. Clone the repository:
https://github.com/VanessaAoki/TicTacToe.git
  1. Type $ cd bin to move to the bin folder;

  2. Execute the file by using $ main on the terminal;

  3. Enter your moves on the terminal and enjoy the game!

Live server:

  1. If you prefer, you can run the game on your web browser by clicking on this link;

  2. Click on the green button that says 'Run' at the top of the page to start the tic tac toe game;

  3. Type $ cd bin to move to the bin folder;

  4. Execute the file by using $ main on the terminal;

  5. Enter your moves on the terminal and enjoy the game!

Game Rules

  1. Tic tac toe is a 2-player game, X and O;

  2. Players alternate turns to choose a move on a 3x3 grid, like this one:

1 | 2 | 3
-----------
4 | 5 | 6	--> This is the tic tac toe board
-----------
7 | 8 | 9 
  1. The first player to secure three consecutive positions on a row, column or diagonal wins;

  2. The end games in a tie if neither player has won and all positions on the board are taken.

Screenshot of the output

  • This is an example of a winning move: screenshot

  • This is an exemple of a draw game: screenshot

Built With

  • Ruby
  • Visual Studio, Git & GitHub

Authors

👩🏼‍💻 Vanessa Aoki

🧑‍💻 Sunil Kumar

🤝 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 a Ruby version of the Tic Tac Toe game. You and a friend can play it directly at the terminal.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages