Hello,
I am creating turn based room with 200+ users. Each room is having 52 cards. User has to pickup the card on turn basis where
1. If selected card is Ace of Spade then the user is selected as winner or
2. If the card is other that Ace of spade the game continues.
Once the winner is selected the room should reset and users can join the same room the and play again. User can also play in other rooms which are not closed yet.
I am able to implement the game continue flow by having sendMove().
-(void) sendMove:(NSString*) moveData nextTurn:(NSString*)nextTurn;
So my question is how should i reset the room which again reused for next play? Do i need to delete the room and create an new room with same name or is there any way to get existing room? I also want to maintain who is the winner of each room.
Platform Used - iOS
Laguage - Swift