Hello everyone,
I’m developping a multiplayer turn based game.
I have a general question : how do you handle the network errors that happen between a turn ?
For example, I have wifi/3G when I start one round, but I do not have anymore wifi/3G connection at the end of the round (when I send the data to my webserver).
My idea is to store into a table my request before calling the webserver.
If I get a network error, I will repeat the request 2 times with a delay of 2 seconds.
If it still fails, I will save into a file in the phone the request. When the player connects again, the last request stored in the file will be sent again.
Is it good / enough ? I don’t want to reinvent the wheel but I did not find any solution on internet …
Thanks for helping me !