[Doc] args optional - Game state machine.

Game development with Board Game Arena Studio
Post Reply
User avatar
Rudolf
Posts: 566
Joined: 24 December 2011, 23:04

[Doc] args optional - Game state machine.

Post 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?
User avatar
sourisdudesert
Administrateur
Posts: 4630
Joined: 23 January 2010, 22:02

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

Post by sourisdudesert »

Hello,

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

Thanks
User avatar
Rudolf
Posts: 566
Joined: 24 December 2011, 23:04

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

Post 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()
);
}
User avatar
sourisdudesert
Administrateur
Posts: 4630
Joined: 23 January 2010, 22:02

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

Post by sourisdudesert »

Thanks !

It's fixed!
User avatar
Rudolf
Posts: 566
Joined: 24 December 2011, 23:04

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

Post by Rudolf »

you're welcome.... it's a big work that has been done!
Félicitations!!!
User avatar
GoDodyGo
Posts: 42
Joined: 14 August 2020, 07:30

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

Post 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 1535 times
In the explanation, the text should be "argPlayerTurn" and not "argPlaceWorkers" (right?)
Post Reply

Return to “Developers”