Creating the "Tic Tac Toe" Game using OOP (Object Oriented Methodology).
This Microverse project consists of recreating the famous game "Tic Tac Toe" using the language Ruby to test our knowledge and abilities to manage classes, methods, and different objects
- Ruby
- VsCode.
Prerequisites:
- Text Editor (VSCode is suggested)
- Ruby.
To play the game locally follow these simple steps:
- Download or clone this repository
- Navigate to project Directory on your terminal (cd Directory)
- Allow bin/main.rb to be executable by running this command: chmod 755 bin/main.rb
- Now, just run bin/main.rb in your terminal and have fun!
- Tic Tae is a 2 player game where the goal is to mark your signs/symbols X or 0 in consecutively.
- It is usually played on a 3x3 board but can be played on bigger boards. So a 3x3 board the goal is to complete 3 signs consecutively.
- It can either be horizontally, vertically or diagonally.
- Every player plays alternatively. If no consecutive pattern is made, it is a draw!
- Every player makes alternate moves.
- Valid moves are only in blank squares where no move has been already made.
- If pattern of same symbols is formed, horizontally, vertically or diagonally the player doing so wins.
- If no consecutive pattern is formed, it is a draw!
- Check Game Instructions section for detailed instructions on how to play the game with images.
3. The game will display the board
4. Player one choose a position (which is not occupied) in the board from 1 to 9
5. Now the same with player two and repeat the sequence until there is a winner or the board is full which would result in a draw
6. Press "Y" if you want to play another round!
👤 Akshay Narkar
- Github: @akshay-narkar
- Twitter: @akidoit
👤 Andrik Solis
- GitHub: Andrik27001
- Twitter: @Andrik22693566
- LinkedIn: LinkedIn
Contributions, issues and feature requests are welcome! Start by:
- Forking the project
- Cloning the project to your local machine
cd
into the project directory- Run
git checkout -b your-branch-name
- Make your contributions
- Push your branch up to your forked repository
- Open a Pull Request with a detailed description to the development branch of the original project for a review
Give a ⭐ if you like this project!
This project is MIT licensed.