How to do back and forth?

0 votes
Hi,

I've seen the tutorial on doing custom server code that I faced a question.

What I know so far is that I have to change the Execute code which is in Java and put my logic code there. Question is, my logic code is not that simple. It's a TCG (Trading Card Game) and requires back and forth between the other player and just a single exectution of a function won't work.

It goes like this, player1 does some logic code, player2 sees the result, does something in return, then server does some calcuations and finds the winner of that turn. And game consists of 5 of these turns.

How can I break such logic into the server code?

Thanks
asked Mar 27, 2015 in App42 Cloud API-BaaS by aidinz (10 points)

1 Answer

0 votes

Looks like you are building turn based multiplayer card game. Putting all these logic using Custom code would be a difficult and complex thing to achieve. I would suggest to use AppWarpS2 in this case cause it is build to handle these kind of scenarios. Please have a look and let us know if you need any additional help or support.

answered Mar 29, 2015 by ajay123 (899 points)
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
...