Tic Tac Toe Game with ruby...Test it out!!!
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
(Click on the image to play with the code! See instructions in Usage)
In this project we developed our own version of the game Tic Tac Toe using the next features in ruby:
- Classes and Modules
- Welcome screen
- Input validations
- Track movements of each player
The project was developed using the following technologies:
- Play against computer
Click on the image at the top or in the following link,
- In the left panel, open the bin folder and select "main.rb"
- Click on the console and type
cd bin
and hit enter to go to the bin folder - Click on the console and type
./main.rb
and hit enter to start the game Now you can play in the console!!
- Tic-tac-toe is a game for two players, X and O, who take turns marking the spaces in a 3×3 grid.
- The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.
- The following example game is won by the first player, X:
For the test, click on the image at the top or in the following link,
- Click on the console and type
gem install rspec
then press enter to begin the instalation process - Once the process is done, type
rspec
and press enter to see the 10 test for this game - You can see the test files by clicking on the left panel spec/tictactoe_spec.rb
See the open issues for a list of proposed features (and known issues).
Project Link: https://github.com/kitpao/TicTacToe_game
Kitzia Paola Vidal Marroquin - Github user: kitpao
kitpao91@gmail.com | Portfolio | LinkedIn | Twitter
Yair Fernando Facio - YairFernando67