Skip to content

Maha-Magdy/Tic-Tac-Toe-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe-Game

In this project, we worked on building our own Tic-Tac-Toe Game in ruby, and we make test-driven development (TDD) using the RSpec testing framework.

Built With

  • Ruby
  • Repl
  • RSpec

Game Rules

Tic Tac Toe is a game whose main objective is to complete a row, column, or diagonal with the same symbol. Players take turns placing different symbols ("X" or "O") on the board, and the first that completes a row, column, or diagonal, wins. If no one completes them, then the game ends as a "Tie".

Getting Started

To get a local copy up and running follow these simple example steps.

To clone this repo run this code on a terminal window:

git clone https://github.com/Maha-Magdy/Tic-Tac-Toe-Game.git

To have all gem files installed in your machine:

You must run bundle in your terminal.

To run the TDD in your machine:

You must run rspec in your terminal.

Game Instructions

  • Run bin/main.rb in the Terminal
  • Enter the first player's name
  • Enter the second player's name
  • Press Enter to start the game
  • Each player must enter a number from 1-9 that's not already placed on the board
  • The game finishes when all places are filled ("TIE") or when a row, column, or diagonal is filled up.

Authors

👤Maha Magdy

👤 Arthur Borges

👤 João Vítor Montanholi Nunes

🤝 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

📝 License

This project is MIT licensed.

About

A tic-tac-toe game coded with the Ruby language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages