Room Type for Turn Based Game like Chess

0 votes
I have a turn based game that I am testing that is much like chess. I want the user to take as much time as needed but yet it is still a turn based game. I do not see a way to specify an unlimited time on the createTurnRoom API so I have been using a high turnTime parameter like 300000 seconds. However, I am getting quite a few resultCodes of 5 on the onConnectDone request. Is this the correct way to approach this type of game or should I be using a different kind of room? Thanks ahead of time! Scott
asked Jan 14, 2016 in Android by gsglawson (10 points)
recategorized Mar 8, 2016 by shepAdmin

1 Answer

0 votes

HI GsGlawson,

As AppWarp works on Real Time principle, So you can not use too much turn time like 300000 seconds to play next User turn. As Turn time increases it not supports to be Real Time as either of player can be disconneted with the Game.

So you create two types of Game.

1. Real Time basis : In Which turn time is fix. Bot player should be connected to play th e game.

2. Using Push Notifications : So if you want to create chess game in which turn Time not fix and can increase too much extent. If you are creating game for Mobile you can use App42 Push Notification API

  • Register Player first time for Push.
  • In This Its not necessary both player should be connected at the same time.
  • You can challenge your friend by seding Push Notification
  • Opponent can accept the request or deny.
  • Whenever a player plays his turn a Push Notification related to his turn sent to opponent.
  • On opponent side when Push is recevied it open the app and update the UI with oppnent turn and play its Turn.
  • This will continue till game end.

All game business logic related to Push Notification data you can write at your end accordingly.

Let me know if more queries are concern.

Thanks & Regards

Vishnu Garg

 

answered Jan 15, 2016 by Vishnu Garg (674 points)
edited Jan 15, 2016 by Vishnu Garg
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...