🐞
Report a Bug
🙋♂️
Request Feature
- Tic-Tac-Toe
- Instructions
- How to run the game
- Playing the game
- Author
- Contributing
- Show your support
- License
Build a tic-tac-toe game on the command line where two human players can play against each other and the board is displayed in between turns.
-
The game is played on a grid that's 3 squares by 3 squares.
-
You are X, your friend is O. Players take turns putting their marks in empty squares.
-
The first player to get 3 of his or her marks in a row (up, down, across or diagonally) is the winner.
-
When all 9 squares are full, the game is over. If no player has 3 marks in a row, the game ends in a tie.
- Be sure that you have
ruby
installed, you can check usingruby --version
:
- Clone the repository
git clone https://github.com/Israel-Laguan/Tic-Tac-Toe.git
cd Tic-Tac-Toe
- Execute the main file with your terminal
ruby bin/main.rb
- Get a friend (or victim, if you are good) to play
- Have fun!
- Starting the game
- Set your names
- You will see the board, its made with numbers portraying the available spaces. You can choose one of the numbers where your mark will be placed
- When someone get 3 in a row you win and the game ends
- You can enjoy any number of times
- Ruby v2.6.3+
rvm
- VsCode
- Windows + WSL && Debian
- Love and passion for code ❤️
- Gem Folder structure (
/bin
&lib
folders) - Modules, classes and methods
- Use
requiere_relative
for call code from another file p
,puts
andget chomps
for user output and interaction- Rubocop for code linting
- Tests using
RSpec
- 🇧🇷 Izaias Neto
- 🇨🇴🇸🇻 Israel Laguan
🤝 Contributions, issues and feature requests are welcome! Feel free to check the issues page.
🤗 Give a ⭐️ if you like this project!
Icons from:
📝 This project is licensed under the MIT
Feel free to fork this project and improve it - see the LICENSE file for details