Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tuananh131001/tictactoe
A tic tac toe game with multiplayer feature
https://github.com/tuananh131001/tictactoe
firebase swift swiftui
Last synced: 5 days ago
JSON representation
A tic tac toe game with multiplayer feature
- Host: GitHub
- URL: https://github.com/tuananh131001/tictactoe
- Owner: tuananh131001
- Created: 2022-08-24T04:50:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-28T16:32:48.000Z (over 2 years ago)
- Last Synced: 2024-10-30T23:40:27.351Z (about 2 months ago)
- Topics: firebase, swift, swiftui
- Language: Swift
- Homepage:
- Size: 79.3 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TITATO
A Single Player and Multiplayer Tic-tae-toe game.
" Just a simple tic-tac-toe game "
## 🎉Introduction
Tic-tac-toe (American English), noughts and crosses (Commonwealth English), or Xs and Os (Irish English) is a paper-and-pencil game for two players who take turns marking the spaces in a three-by-three grid with X or O. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner. It is a solved game, with a forced draw assuming best play from both players. [1]
## đź’ˇMotivation
When I was studied in elementary , my childhood is stick with tic-tac-toe .A game that you can play everywhere just with a pen and a piece of paper,you can compete with your friends and have a great momemnt when winning.You don't have to teach the other because the game is very easy to play.So this time I make it on the phone with multiplayer mode so you can play with your friend even from very far distance or if you dont have friend you can also play with an AI with different mode to experience.
## đź“– Rules and Tips
The goal of the game is to connect number symbols indicated on the below figure.
![threewin](https://user-images.githubusercontent.com/67695658/187071397-628c2671-ab2f-41b6-a499-4ad834f3b2bf.png)
You can connect symbols in any direction row, column or diagonal.
Some winning examples:
### TIPS:
- You should make a move in the middle.
- For defence , you should make moves in every corner if the other make a move in middle.
- You will win if other makes mistake and conversely.
## đź’Ž Main Features
### - Greeting View (Menu view):
From this view, users can navigate these below views: Game view,Leaderboard button. , How to play view and Leaderboard view:
### - List of high scores (or past scores)
The view display that all users have played with their score and achievement badges they got.
### - Game view:
The view where users can play with your game..There is the current score/status of the game. User can take some actions to progress the game.There is some animations with “xmark” and “omark”.The is a status of the turn of the player.
### - How to play view:
Show user rules/how to play this game.
### - Effect sounds:
There are background music for every view. There is a sound effect when tap when play game and achieve the badges. Also, there is sound effect when lose, win and drawn.
### - The game works well on iPhone 11 upper.## ⚙️ Extra Features
### 1. Resume match
By implement auto save , when user make any move , the game will automatically save .When player open the app , the game will ask if he/she want to continue, if yes the game will load the last game and continue to play.
### 2. Changing name
Player can change name in greeting view or in setting view. The leaderboard will show different names for each score
### 3. Achievement badges
When player score is 1400 , 3000,4000,100000,10000000 ,they will get badge and message announce getting the badge.
### 4. Difficulty system
There are 3 mode when player plays with AI : Gacha,Easy,Hard.
In the gacha mode, player and AI will make random moves.In Easy mode, AI will make random moves .And in the last mode, player will play with a smart AI .
### 5. AI game agent
In Easy mode, AI will make random moves .And in the last mode, player will play with a smart AI . IN the hard mode, the AI will check a set of winning moves , if the player move is in a set of winning move ,the AI will move the next win moves so that players cannot complete their winning move.
### 6. Dark mode
The application uses neutral colors so the program can works well in both light mode and dark mode.
### 7. Multiplayer
In the multiplayer mode, the user create a room and wait for other player. When other player gets in ,they will start the game in real time playing .
## đź“· Screenshot
## đź”® Live Demo (Animation GIF)
Full Version
Multiplayer
## 🔧 Build Information
- Xcode 13.4.1
- SwiftUI Framework
- Target Deployment iOS >=15.3
- Library: Firebase,AVFoundation,Combine
- Note for build : Just download,open the .xcodeproj , wait until it finish downloading firebase.Choose Iphone 11 for simulation.
## Futher Improvement
- Anti cheating system (players can use multiple finger to win)
- Avatar for users
- Leaderboard works in multiplayer
## đź‘‘ Author
- Nguyen Tuan Anh - [email protected]## Reference
[1] wikipedia, "Wikipedia," [Online]. Available: https://en.wikipedia.org/wiki/Tic-tac-toe. [Accessed 27 August 2022].![image](https://user-images.githubusercontent.com/67695658/187071108-18fa5b16-f813-4879-8c27-7064f931ffb7.png)