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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Web Server - Turn based game

Discussion in 'Multiplayer' started by Oxylis, Dec 30, 2016.

  1. Oxylis

    Oxylis

    Joined:
    Jul 19, 2015
    Posts:
    4
    Hi all,

    While this is most likely not pure networking, I feel I might get the best help here.
    I'm trying to figure out if the direction I'm taking makes sense.

    Think of a turn based board game (like chess or monopoly), I play my turn, then it's player 2, then player 3, etc... Now this wouldn't be real time turn base with actual connection between players. Something more like I play my turn, the next player gets a notification when they play their turn when they are ready to do so. (If you've played Words with Friends for example, it works like this).

    All of these ongoing games and turns would be stored on a mysql db on a web server (which can be queried from different devices including a webpage).

    Does it make sense to work this way, or am I missing something obvious on the way to handle this simple "multiplayer" aspect?
     
  2. Jos-Yule

    Jos-Yule

    Joined:
    Sep 17, 2012
    Posts:
    292
    That sounds like a pretty standard way to do it. An issue is the notification bit, and getting that working for both iOS and android and web and whatever other platforms you are targeting. As an aside, I've been looking into using Amazon's Lambda service for a turned based game, rather then rolling my own full server or even an ec2 instance...
     
    Oxylis likes this.
  3. Oxylis

    Oxylis

    Joined:
    Jul 19, 2015
    Posts:
    4
    Thank you Jos-Yule, I'm glad this is the right way to go as I'm quite comfortable with it. (Although didn't think about notification yet)

    Regarding the web server, I just looked into Amazon Lambda (Nice Half Life logo :D) and it sounds too good to be true, I'll check it out as it would probably do exactly what I need!

    Thanks for your help!