Client Interface
Join() | |
Parameters | None |
Return Value | String Format: [<key>:<data>;]* |
Functionality | Create a PlayerID and Card, adding both to the database. Retrieve the GameID and Draws from the database. (If necessary, create a new GameID to start a new game.) Return a String containing all four pieces of data. |
GetSnapshot() | |
Parameters | None |
Return Value | String Format: [<key>:<data>;]* |
Functionality | Retrieve the GameID and Draws from the database. Return a String containing both pieces of data. |
GetGameID() | |
Parameters | None |
Return Value | int |
Functionality | Retrieve the GameID from the database and return. |
DeclareBingo() | |
Parameters | int gameID String playerID |
Return Value | int Encoding: 0 = not bingo 1 = bingo, but not a winner (too late) 2 = bingo and winner! |
Functionality | Verify that the playerID, gameID combination does have Bingo, given the current
draws. Attempt to store to the database that playerID as the winner. (Only the first playerID with Bingo is the winner.) Return an integer encoding the results. |