Tic-Tac-Toe game uses naughts and crosses. Two players X & O take turns marking the spaces in a 3x3 grid. This is a command line game built with Ruby.
- Ruby
- In order to win the game, a player must place three of their marks in a horizontal, vertical, or diagonal row.
- Copy this link
- Open your terminal or command line
- Run
git clone
and Paste the link - Open the folder with your code editor
- Create a branch to work on
- Now You can edit the code and do a pull request
- After clonning the project, the player should run
./bin/main.rb
at the root of the project in the terminal. - The players should enter their names and the first player will play with X and the second with O.
- Players will take turns marking their spots on the board.
- The first player who matches three spots in a horizontal, vertical, or diagonal row. is the winner.
- When the spots on the board are all marked with no matches, then, the game ends in a draw.
- Should you wish to exit the game play before completion use Ctrl+C to stop.
👤 Tshephang Mampa
- GitHub: @tmampa
- Twitter: @tshephangm_
- LinkedIn: Tshephang Mampal
👤 Mwila Kaunda
- GitHub: @themwi
- Twitter: @__mwila
- LinkedIn: Mwila Kaunda
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!