Skip to content

A simple Tic-Tac-Toe multiplayer game built using Ruby. You can follow the live demo link from the readme file and enjoy playing yourself.

Notifications You must be signed in to change notification settings

AleksandarIvezic/Tic-Tac-Toe_Ruby-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe_Ruby-project

In this project we are going to make a Tic-Tac-Toe game using Ruby.

This project is a tic-tac-toe game on the command line where two human players can play against each other, and the board is displayed in between turns.

  • Player 1 name input :

screenshot

  • Gameplay :

screenshot

  • Gameover announce the winner :

screenshot

Built With

-Ruby

Live Demo

Live Demo Link

Getting Started

Prerequisites

  • Ruby installed

Setup

  • To download this repository go on this page Tic-Tac-Toe and click on the Code button
  • Then you can choose to download it as a ZIP file or copy HTTPS/ssh address and clone it using Terminal or Bash in your local machine.
  • Enter the file of the Repository with your Terminal/Bash and run "./bin/main.RB"

-To run it remotely you can follow the link Tic-Tac-Toe-Game

RULES FOR TIC-TAC-TOE

  1. The game is played on a grid that's 3 squares by 3 squares marked by numbers from 1 to 9

  2. The first player is X, the second one is O. Players take turns putting their marks in empty squares typing in a number of the square they choose.

  3. The first player who gets 3 of his/her marks in a row (up, down, across, or diagonally) is the winner.

  4. When all 9 squares are full, the game is over. If no player has 3 marks in a row, the game ends in a draw.

If you want extra information about the game rules, check this link from Wikipedia

Authors

👤 Safa Aballagh

👤 Aleksandar Ivezic

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Acknowledgments

Show your support

Give a ⭐️ if you like this project!

About

A simple Tic-Tac-Toe multiplayer game built using Ruby. You can follow the live demo link from the readme file and enjoy playing yourself.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages