Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TicTacToe

Goal

This is a Unity game that demostrate peer to peer multiplayer mode. Player has P2P Network where user can choose Single Player or Second Player.

Flow will be

    A[Lobby (Mode Choice)] --> B[P2P Initialization]
    A --> C[Game Starts]
    C --> D[Evaluate Move]
    D --> E[Simulate If Necessary]
    D --> F Wait for the next Input
    E --> C
    F --> C
    D --> B [Game Over]
    

Technical Detail

Network Manager : Wraps Fusion Manager Game Manager: Handle logic State Controller: Handles State UI display Cell Controller: Handles Cell State and display Next Move Evaluation: Game Manager handles manually

Running the game

Enter AppID in the /Assets/Photon/Fusion/Resources/PhotonAppSettings.asset

In the file Assets/Resources/config.json Add Fusion pick up your Application ID and place it there.

{
  "ApplicationID": <Application Id Here> 
}

TODO

  1. simulation could be wiser using minimax algorithm.
  2. At the GameOver, replay button should bring it back to A->C
  3. Multiplayer flow test.
  4. Moving AppID to the Configuration Assets/Resources/config.json

About

tic-tac-toe multiplayer game for unity

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages