An open API service indexing awesome lists of open source software.

https://github.com/haroonabdulrazaq/tictactoe

(Solo)TicTacToe is a 3x3 grid dual player game that assigns symbols(Xs, Os) to players. The final outcome is either a tie or a win. There are 8 possible winning combinations from a player, the player can win by making 3 consecutive moves either vertically, horizontally or diagonally. A player has a maximum of 5 possible moves.
https://github.com/haroonabdulrazaq/tictactoe

game ruby solo

Last synced: 4 months ago
JSON representation

(Solo)TicTacToe is a 3x3 grid dual player game that assigns symbols(Xs, Os) to players. The final outcome is either a tie or a win. There are 8 possible winning combinations from a player, the player can win by making 3 consecutive moves either vertically, horizontally or diagonally. A player has a maximum of 5 possible moves.

Awesome Lists containing this project

README

          

# Tic Tac Toe Game

[![View Code](https://img.shields.io/badge/View%20-Code-green)]()
[![Github Issues](https://img.shields.io/badge/GitHub-Issues-orange)]()
[![GitHub Pull Requests](https://img.shields.io/badge/GitHub-Pull%20Requests-blue)]()

## Content

About   |   
Rules   |   
Built with   |   
Set-up   |   
Live Demo   |   
Author

## About
TicTacToe is a 3x3 grid dual player game that assignes symbols(Xs,Os) to players. The final outcome is either a tie or a win. There are 8 possible winning combinations from a player, player can win by making 3 consecutive moves either vertically, horizontally or diagonally. A player has maximum of 5 possible moves.

## Rules
- Players have to enter a name
- The system assignes a symbol(X or O) to players
- The player can make moves by pressing a number (of choice) on his/her keyboard
- The position a player is choosing should not have been taking
- The move made by a user should be a number otherwise its an invalid move
- A player can win by making three consecutive moves vertically, horizontally or diagonally
- If all position has been taken and there is no winner then its a tie(draw)
For more detailed information on the game rules [click here ](https://www.thesprucecrafts.com/tic-tac-toe-game-rules-412170)

## 🔧 Built with

- Ruby

## 🔴 Live Demo

[Run on Repl.it](https://repl.it/@Haroon136/tictactoe#Logic.rb)

## 🔨 Setup

- To clone this repo to your local repository. Follow these steps
- git clone https://github.com/Haroonabdulrazaq/tictactoe.git
- cd tictactoe
- ruby Logic.rb

## ✒️ Authors

👤 **Haroon Abdulrazaq**

- Github: [@Haroonabdulrazaq](https://github.com/Haroonabdulrazaq)
- Twitter: [@Hanq_o](https://twitter.com/Hanq_o)
- Linkedin: [Haroonabdulrazaq](https://www.linkedin.com/in/haroonabdulrazaq)

## 🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the fork this repo and create pull request if you want to make changes.

## 👍 Show your support

Give a ⭐️ if you like this project!

## :thumbsup: Acknowledgements

[theOdinproject](https://theodinproject.com)