Tic Tac Toe Game created using Ruby, for two players.
- Go to the live demo link
- Click the green button "Run"
- Insert player one's name
- Insert player two's name
- First player's mark on the board is X
- Secong player mark on the board is O
- First player starts by selecting a valid number from 1 to 9 to place his mark instead of the selected number
- Second player selects after.
- In order to win the game, a player must place three of their marks in a horizontal, vertical, or diagonal row.
- If any player enters number not in a range of 1 to 9 or letter or some symbol, they will get the error message and we be asked to enter another number.
- If any player enters number which is marked on the board, they will get the error message which say that that place is take on the board.
1,2,3 --> X,2,O --> X,2,O --> X,2,O
4,5,6 --> 4,5,6 --> X,5,6 --> X,5,6
7,8,9 --> 7,8,9 --> 7,O,9 --> X,O,O
- When non of the player's marks three of their marks in a horizontal, vertical, or diagonal row, instead just fills full board.
- Get a local copy of the repository run the following commands on your terminal:
- $ git clone https://github.com/ClaytonSiby/tic-tac-toe.git
- $ cd tic-tac-toe
- $ Write in your terminal - "main" or "ruby main" (without qoutes) if not working.
- Get a local copy of the repository run the following commands on your terminal:
- $ git clone https://github.com/ClaytonSiby/tic-tac-toe.git
- $ cd tic-tac-toe
- $ Write in your terminal - "rspec" (without qoutes).
- Ruby
👤 Visvaldas Rapalis
- Github: @visva-dev
- Twitter: @Visva_Dev
- Linkedin: @Visvaldas-Rapalis
👤 Yigit Mersin
- Github: @yigitm
- Twitter: @yigitmersin
- Linkedin: @yigitmersin
Contributions, issues and feature requests are welcome! Start by:
- Forking the project
- Cloning the project to your local machine
cd
into the Youtube-Replica 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
This project is MIT licensed.