Page 1 of 1

game auto starts to next player

Posted: 20 April 2013, 22:40
by garcia1968
Referencing the reversi tutorial, my game skips the first player and jumps to the next player. Not sure if/how the states.inc.php is causing this or some other code.

Re: game auto starts to next player

Posted: 21 April 2013, 21:12
by Rudolf
it change to next player with nextstep:
// Go to next game state
$this->gamestate->nextState
in gamename.game.php

there is a click -> test if action is possible -> execute with a notify (notify is for all players to be sure they see something moving :) ) -> NexState