Sign in to follow this  

Network game: how to handle turn game (like ruzzle management)

Recommended Posts

sefiroths    138

i'm wondering how to handle matches like do ruzzle in ios:
one player can play the game and the other can play it too, while all two player haven't finished, i can't go to the second...
GKTurnBasedMatch can't be because only one player at a time can make his move...

Real-Time Matches? but if a player accept to play, then disconnects...?


should i have a separate server that stores the game, or i can use some other apple api?


Share this post

Link to post
Share on other sites
zylski    203

i dont think the apple api has much that will help you out...i would set up your own server that stores the data for all active games in each client (so a multi threaded server) and whenver a client plays a turn it sets a variable in the client like bool[] activeGames = {false, false, true}; so game 3 it be your turn (probibly would work better in a list not an array so you can story objects) anyways kinda an idea feel free to pm me for my skype if you have more questions

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this