Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

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:
    615
    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:
    54
    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:
    615
    Ok thank you so much I’ll look into it.
     
    Reaktion likes this.
  4. DarkSlash

    DarkSlash

    Joined:
    Sep 30, 2011
    Posts:
    129
    How about the costs of that? The last 10 years Unity had been super tricky about price and small letter. It says first 50 CCU in a month are free and then $0,16. Let's say 100.000 users play at least one time my game in the same month. Do I have to pay (100.000 - 50) * 0,16 = $15.992?? Even for a low transfer data game as a tic tac toe?
     
  5. Reaktion

    Reaktion

    Joined:
    Nov 8, 2019
    Posts:
    54
    Hi,

    If you're planning on having a public multiplayer game, and you're thinking about costs, I suggest you to contact Unity, to get every answer you need.
    As you can see here : Unity Gaming Services Pricing - Start Building for Free | Unity
    For Unity Relay, it says First 50 Average monthly CCU (approximately 2,160,000 connectivity minutes)
    I cannot tell you if you can have more than 50 CCU, and what the amount of connectivity minutes means here, but Unity support can ! :)
     
  6. RedwireInteractive

    RedwireInteractive

    Joined:
    Jun 21, 2014
    Posts:
    3
    Would recommend using Netcode for Gameobjects with the Facepunch Steam Unity Transport if you're targeting/ have access to steam.

    This will cost you 0$ even if you end up with 1 million users.

    Steam handles the NAT punchthrough for you in this case, allowing true peer to peer connections.