This is a project in the Main Ruby curriculum at Microverse - @microverseinc .
- Ruby
- Rspec
The task was to implement a Tic Tac Toe game.
This project is mainly about
- Object Oriented Programming
- The DRY rule
-
Clone this github repo onto your local machine
-
In the terminal move to the home directory of this repo
-
Type the following commands
cd bin ./main
-
Alternatively, you can create an executable script
main
(Read About How to Create an Executable Script)
- In order to play the Tic Tac Toe game just run the executable script in the terminal by typing
main
and follow the promptmain
- Players' names can be entered at the beginning of the game
- Players can choose 'X' or 'O' as a symbol
- To win the game, three identical symbols must be next to each other vertically, horizontally, or diagonally. If there is a winner, the winner will be announced as "WINNER"
- If no one has won by the end of ninth turn, the game will be ended as a "DRAW"
For more information check Wikipedia
To test the project
- Navigate to the directory where the project is located.
- Open terminal in this directory.
- Install RSpec by using
gem install rspec
command. - Start testing by using
rspec
command.
👤 Marylene Sawyer
- Github: @Bluette1
- Twitter: @MaryleneSawyer
- Linkedin: Marylene Sawyer
👤 Hasan Özovalı
- Github: @ozovalihasan
- Twitter: @ozovalihasan
- Linkedin: Hasan Özovalı
- Mail: ozovalihasan@gmail.com
👤 Prajwal Thapa
- LinkedIn: Prazwal Thapa
- GitHub: @praz99
- E-mail: t.prazwal@gmail.com
This project is MIT licensed.