Web Server - Turn based game

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?

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…

1 Like

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 :smile:) 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!