Page 1 of 1

[Doc] args optional - Game state machine.

Posted: 27 March 2013, 16:31
by Rudolf
Hello,
I'm not sure to understand
' it corresponds to a 'argPlaceWorkers' method in our PHP code (reversi.game.php)'
maybe it's a melt of doc versions? reversi melt with another game?

Re: [Doc] args optional - Game state machine.

Posted: 28 March 2013, 16:51
by sourisdudesert
Hello,

I didn't find this in Reversi tutorial. Where did you find it?

Thanks

Re: [Doc] args optional - Game state machine.

Posted: 28 March 2013, 18:31
by Rudolf
Hello Sourisdudesert!
le lien:
http://en.boardgamearena.com/#!doc/Your ... es.inc.php

args
[...]
In states.inc.php, we specify some « args » argument for gamestate « playerTurn » :
[...]
It corresponds to a « argPlaceWorkers » method in our PHP code (reversi.game.php):

function argPlayerTurn()
{
return array(
'possibleMoves' => self::getPossibleMoves()
);
}

Re: [Doc] args optional - Game state machine.

Posted: 28 March 2013, 18:35
by sourisdudesert
Thanks !

It's fixed!

Re: [Doc] args optional - Game state machine.

Posted: 28 March 2013, 18:45
by Rudolf
you're welcome.... it's a big work that has been done!
Félicitations!!!

Re: [Doc] args optional - Game state machine.

Posted: 23 August 2020, 23:45
by GoDodyGo
The documentation is great. Website is fantastic.

I know this thread is very old, but I'm confused by the documentation. I think the text should be "argPlayerTurn" and not "argPlaceWorkers" on this slide in file "4-gamestates.pdf" page 20/23.
I think the text is confusing when it refers to "argPlaceWorkers" and there is no such function in the referenced file "reversi.game.php."
I think the text is confusing when it refers to "argPlaceWorkers" and there is no such function in the referenced file "reversi.game.php."
Doc4-gamestatesPDFFile.png (254.16 KiB) Viewed 1542 times
In the explanation, the text should be "argPlayerTurn" and not "argPlaceWorkers" (right?)