Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Commit

Permalink
added some comments to the games api controller
Browse files Browse the repository at this point in the history
  • Loading branch information
novazembla committed Aug 30, 2011
1 parent ee88e6d commit e91ba45
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion www/protected/modules/api/controllers/GamesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,22 @@ public function actionPlay($gid) {
* },
* turn : {
* score : 0, // numeric of the previous turn's score
*
* tags : { //information of the previous turn's tags xxx implement
* "user" : [{
* "tag" : 'tag1',
* "original" : '', // set if submitted tag differs from registered tag (3 dogs -> three dogs) // xxx define cleanup rules
* "score" : 1, // score of this tag
* "weight" : 1 // xxx are we transparent about that?
* },
* ...
* ],
* "partner" : [{ xxx implement define
* "tag" : 'tag1',
* "tag" : 'tag1',
* },
* ...
* ]
* },
* // the following fields are available in all games
* images : [{
* // all urls are relative to game.base_url
Expand Down

0 comments on commit e91ba45

Please sign in to comment.