ONTWIKKELEN
namen
Informatica | DrA | 5V.in1 | PTA 522 | maart 2017
Pieter Zandt
Informatica
,Inhoud
Analyse...................................................................................................................................................3
Onderdelen.........................................................................................................................................3
Acties per onderdeel..........................................................................................................................3
Eisen.......................................................................................................................................................4
Inloggen..........................................................................................................................................4
Persoonlijke pagina.........................................................................................................................4
Starten van een spel.......................................................................................................................4
Spel joinen......................................................................................................................................4
Spelen van een spel........................................................................................................................4
Spel beëindigen..............................................................................................................................5
Maken van een scoreranglijst met afhankelijke scores..................................................................5
Keuze protocolsoort...............................................................................................................................6
REST:...................................................................................................................................................6
SOAP:..................................................................................................................................................6
RPC.....................................................................................................................................................6
Verantwoording keuze JSONRPC........................................................................................................7
Protocol design.......................................................................................................................................8
General Syntax:...............................................................................................................................8
Inloggen..............................................................................................................................................8
Method: To register a person.........................................................................................................8
Method: To log in a person.............................................................................................................8
Personal page...................................................................................................................................10
Method: Retrieve previously saved games...................................................................................10
Method: Request, change and save personal data.......................................................................10
To end a game..................................................................................................................................10
Method: Quitting a game..............................................................................................................10
Method: Game end after winning the game................................................................................12
Set up a game...................................................................................................................................12
Method: creating a game.............................................................................................................12
Method: make the ships...............................................................................................................12
Method: starting the game...........................................................................................................13
Joining a game..................................................................................................................................14
METHOD: Request list of current games......................................................................................14
METHOD: join a game...................................................................................................................14
, METHOD: add a player to you game.............................................................................................14
Method: Het plaatsen van de schepen.........................................................................................16
Method: To make a move.............................................................................................................16
Making score rankings......................................................................................................................16
Method: get highscores................................................................................................................16
Method: get ranking.....................................................................................................................16
Method: get top ranking...............................................................................................................17
Help-button......................................................................................................................................17
Method: Question for help...........................................................................................................17
Method: Send messages to other players....................................................................................17