- Notifications
You must be signed in to change notification settings - Fork1
cvilla714/oop_tic_tac_toe
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Setup the first milestone for the TIC TAP TOE project
- Ruby
-run bundle install
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
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.
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 alreadyselected please try again".
In order to win the game, a player must place three of their marks in a horizontal, vertical, or diagonal row.
-The game will end in a draw if no one has three of their marks in a horizontal, vertical or diagonal row.
- Open the console
- Navigate to the Tic-Tac-Toe project
- Run gem install rspec
- Run rspec
- The spec file is in the spec folder
👤Cosmel Villalobos
- Github:@cvilla714
- Twitter:@kckeyti
- LinkedIn:Cosmel Villalobos
👤Kender Bolivar
- GitHub:@kenderb
- Twitter:@twitterhandle
- LinkedIn:LinkedIn
👤Mir Rawshan Ali
- GitHub:@sumon0002009
- Twitter:@sumon0002009
- LinkedIn:Mir Rawshan Ali
👤Will Nyamunokora
- Github:@bigwizzo
- Twitter:@willnyamunokora
- Linkedin:linkedin Profile
Give a ⭐️ if you like this project!