Skip to content

cvilla714/oop_tic_tac_toe

Repository files navigation

OOP TIC TAC TOE

Setup the first milestone for the TIC TAP TOE project

Built With

  • Ruby

Requirements

-run bundle install

Instructions

How the game starts

  • The very first thing to do is to type this command main.rb this will start the game

  • First players will be asked to provide the name, it cannot have an empty space and it can be a combination of numbers and letters screenshot

  • The first players will be asked to choose between X and O

  • Second Player will be asked for the name, same rules apply no empty characters and it can combination between lettesr and numbers - The Second players won't be asked to choose between X and O because they will be assigned the next value that the first player picked - Once the game starts the players will be asked to choose a number from the grid between 1 to 9 or quite the game by pressing the letter q.

    screenshot

  • If a players chooses a number from the grid that has already been chosen by the opposite player then you will get a message saying " spot has bee already selected please try again".

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

-The game will end in a draw if no one has three of their marks in a horizontal, vertical or diagonal row.

screenshot

Running Tests

  • Open the console
  • Navigate to the Tic-Tac-Toe project
  • Run gem install rspec
  • Run rspec
  • The spec file is in the spec folder

Authors

👤 Cosmel Villalobos

👤 Kender Bolivar

👤 Mir Rawshan Ali

👤 Will Nyamunokora

Show your support

Give a ⭐️ if you like this project!

About

Created a TIC TAP TOE game using ruby.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages