Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

I just want to make a peer to peer TicTacToe, am feeling overwhelmed by all the different tools.

Discussion in 'Multiplayer' started by luniac, May 2, 2023.

  1. luniac

    luniac

    Joined:
    Jan 12, 2011
    Posts:
    596
    What’s the easiest way to make a simple 1v1 tic-tac-toe game,
    It’s turn based and peer to peer so people just search for a game or host one and wait for someone to join.

    although if I want friends to be able to play each other can I have some kind of private game thing with passcode?
     
  2. Reaktion

    Reaktion

    Joined:
    Nov 8, 2019
    Posts:
    40
    Hi,

    I recommend you to use Netcode for GameObjects.
    (About Netcode for GameObjects | Unity Multiplayer Networking (unity3d.com) )
    It is the solution provided by Unity to do multiplayer.
    Relatively easy to use, you can find an example of how it is being used inside the Boss Room project.

    You'll find everything that you need for a simple tic-tac-toe, and I recommend looking into Unity Relay service to join games with passcode, as you mentioned.
    Relay: Free P2P Networking & Connection Solution | Unity
     
  3. luniac

    luniac

    Joined:
    Jan 12, 2011
    Posts:
    596
    Ok thank you so much I’ll look into it.
     
    Reaktion likes this.