Skip to content

vzdrizhni/Ruby-Tic-Tac-Toe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby-Tic-Tac-Toe

Tic-Tac-Toe is a game for two players, X and O, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.

Built With

  • Ruby

Getting Started

Game Rules

  • Two players are required to play the game.
  • The first player is X and the second player is O.
  • The players are required to input numbers between 0 - 8, to pick a position in the board.
  • If the player pick a position that is occupied, the player will be required to pick another position.
  • The first player to get identical letter in the row or column or left and right diagonal wins the game.
  • If no identical letter occurs and the board is full, the game will end in a draw

How to run the game in your terminal

  • Run this command line: bin/play_game.rb

Authors

👤 Adewale Adeshola

👤 Roman Nikolaev

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Ruby 100.0%