(By advance, sorry for my level in English and thanks to google translation.)
I'm developing a wargame on BGA (very crazy project, big complexity).
Movements of the parts are really complex (movement points, terrain, rivers, control zones ...).
I want to manage that on the client side (no server overload, no network lag...) in Javascript.
But i need to valid moves on the server side (no cheating).
So computer code is duplicated (php on server-side, JS on client-side).
But it was really hard to cancel move and and give the player a chance to change his mind.
PJL
I'm developing a wargame on BGA (very crazy project, big complexity).
Movements of the parts are really complex (movement points, terrain, rivers, control zones ...).
I want to manage that on the client side (no server overload, no network lag...) in Javascript.
But i need to valid moves on the server side (no cheating).
So computer code is duplicated (php on server-side, JS on client-side).
- Is there another way to do this ?
But it was really hard to cancel move and and give the player a chance to change his mind.
- Any advice ?
PJL