• Advertisement
Sign in to follow this  

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

This topic is 1664 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

thanks

Share this post


Link to post
Share on other sites
Advertisement

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
Sign in to follow this  

  • Advertisement