/OOP-Project

Oblect Orientated Programming Project

Primary LanguageRuby

Tic-Tac-Toe Project

Tic-Tac-Toe game uses naughts and crosses. Two players X & O take turns marking the spaces in a 3x3 grid. This is a command line game built with Ruby.

Built With

  • Ruby

Live demo

Live demo link

Getting Started

  • In order to win the game, a player must place three of their marks in a horizontal, vertical, or diagonal row.

To get a local copy run the following steps:

  • Copy this link
  • Open your terminal or command line
  • Run git clone and Paste the link
  • Open the folder with your code editor
  • Create a branch to work on
  • Now You can edit the code and do a pull request

Play the Game

  • After clonning the project, the player should run ./bin/main.rb at the root of the project in the terminal.
  • The players should enter their names and the first player will play with X and the second with O.
  • Players will take turns marking their spots on the board.
  • The first player who matches three spots in a horizontal, vertical, or diagonal row. is the winner.
  • When the spots on the board are all marked with no matches, then, the game ends in a draw.
  • Should you wish to exit the game play before completion use Ctrl+C to stop.

Authors

👤 Tshephang Mampa

👤 Mwila Kaunda

🤝 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!