Skip to content

A simple tic tac toe game played in console, made with Ruby.

License

Notifications You must be signed in to change notification settings

memelopez/tic-tac-toe-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

Tic tac toe game (X - 0). Built with Ruby. Played in the command line or console. The simplest form of the commonly known game where the winner is the first to connect 3 marks.


First, te game asks for the name of the two players.

Players will take turns to choose an available position in the board.

If a players is succesfull in connecting 3 Xs or 0s then he is declared the winner!

Tic tac toe rules

  • In a grid of 3 x 3 , with nine available positions, the players take turns to mark a cell at a time until one player can connect 3 of his marks in a row.
  • The three connected marks can be horizontal, vertical or diagonal.
  • Once a cell has been marked it cannot be marked again.

Built With

  • Ruby

Getting Started

To download this project:

Git clone it and then run the ruby command on the main file that is in the bin directory.

Prerequisites

  • Git
  • Ruby language

Install

Usage

  1. Git clone this repo
  2. cd into folder
  3. Run: Ruby ./bin/main.rb

Author

👤 Elmer Lopez

🤝 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

A simple tic tac toe game played in console, made with Ruby.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages