tic tac toe ruby

A tic-tac-toe game built with Ruby to demonstrate mastery of Object-Oriented Programming principles and Test Driven Development with rspec.

5
0
Ruby

[Ruby Project: Tic Tac Toe (The Game)]

Developed to demostrate mastery of Object Oriented Programming principles in Ruby, Test Driven Development with rspec and pair-programming principles via Zoom.This project is completed by Seth Zea and Jose Fernandez Caminero, in partial requirements of the Microverse cirriculum.


Built With

  • Ruby
  • Rubocop
  • Rspec
  • VS Code

Pre-requisites

Ruby must be installed in your computer.


Installing Ruby Tic-Tac-Toe

When you have installed Ruby on your computer, clone the project. You can do this by first opening the terminal.

  • Verify Ruby is installed on your computer.
  • Open up your terminal.
  • Clone the project to your computer. You can do this by typing: git clone https://github.com/sz16900/OOP-tic-tac-toe.git
  • Go to main folder: cd OOP-tic-tac-toe
  • Run game by typing: bin/main.rb
  • Enjoy!

Runnung Tests fot Tic-Tac-Toe

rspec


Tic-tac-toe rules

Number of Players: 2

Each player must choose 1 out of the 9 possible spaces to play in. The place she or he has chosen will be marked by their symbol: X (for player 1) and O (for player 2).

You can’t play on any position more than once.

The first player to get three of their symbols in a row, wins the game. Keep in mind these rows can be

• horizontal (left-to-right or right-to-left)
  
• vertical (from up to down or down to up)
  
• or diagonal (e.g. top-left to bottom-right).

Authors

👤 Seth Zea

👤 Jose Fernandez Caminero


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

Acknowledgments


Future Feature

  • A better graphical interface (console)
  • Better error handling messages
  • More testing for user error prone

📝 License

This project is MIT licensed.