Skip to content

Deepakdanger/TIC_TAC_TOE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

Tic Tac Toe is a simple game made with ruby and the usage of object oriented programming. The game instructions can be found below

Built With

  • Ruby

Getting Started

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

  • Clone the repo by running git clone https://github.com/Deepakdanger/TIC_TAC_TOE.git Or download the zip folder
  • Run cd TIC_TAC_TOE in the terminal
  • Make sure you have ruby installed locally run ruby -v
  • To start the game run bin/main.rb in the terminal

Game Instructions

  1. The game is played on a grid that is 3 X 3 squares.

  2. Player 1 is assigned "X" and Player 2 is assigned "0".

  3. Both players take turns choosing a board number position and their marks will replace the numbers on the board

  4. The first player to get 3 of the marks in a row (up, down, across, or diagonally) is the winner.

  5. When all 9 squares are replaced with the signs, the game is over. If no player has 3 marks in a row, the game ends in a tie.

Rspec checking

Rspec install

$ gem install rspec

Rspec check

  1. To Check board:- rspec spec/spec_board.rb
  2. To Check player:- rspec spec/spec_player.rb
  3. To Check logic:- rspec spec/spec_logic.rb

Authors

👤 Olaoluwa Soladoye

👤 Deepak Kumar

🤝 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

  • Microverse
  • The Odin Project

📝 License

This project is MIT licensed.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages