Skip to content

andrecosta90/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tic-tac-toe

This is a simple implementation of the Tic-Tac-Toe game in Ruby.

How to Run

To play the game, make sure you have Ruby installed on your system. Then, navigate to the directory containing the game.rb file and run the following command:

ruby main.rb

How to Play

  1. The game starts with an empty 3x3 board.
  2. Two players take turns marking spaces on the board with their respective symbols ('X' and 'O').
  3. The first player to get three of their symbols in a row (horizontally, vertically, or diagonally) wins the game.
  4. If all spaces on the board are filled and no player has won, the game ends in a tie.

Enjoy the game!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages