opticaliqlusion / clueless

SE Class Project JHU
4 stars 0 forks source link

cheat code for winning game #20

Closed sstangle73 closed 8 years ago

sstangle73 commented 8 years ago

Start a game first player make an accusation dont change any options, just press submit You win!

/start_game
{"idGame":2,"idPlayer":4}
127.0.0.1 - - [08/Dec/2015 19:17:59] "POST /start_game HTTP/1.1" 200 -
{'idPlayer': ['3'], 'idGame': ['2']}
Game solution=[<Card(id=21, name=Billiard Room)>, <Card(id=6, name=Revolver)>, <Card(id=12, name=Professor Plum)>]
127.0.0.1 - - [08/Dec/2015 19:18:00] "GET /get_board_state?idGame=2&idPlayer=3 HTTP/1.1" 200 -
{'idPlayer': ['4'], 'idGame': ['2']}
Game solution=[<Card(id=21, name=Billiard Room)>, <Card(id=6, name=Revolver)>, <Card(id=12, name=Professor Plum)>]
127.0.0.1 - - [08/Dec/2015 19:18:00] "GET /get_board_state?idGame=2&idPlayer=4 HTTP/1.1" 200 -
{'idPlayer': ['3'], 'idGame': ['2']}
Game solution=[<Card(id=21, name=Billiard Room)>, <Card(id=6, name=Revolver)>, <Card(id=12, name=Professor Plum)>]
127.0.0.1 - - [08/Dec/2015 19:18:01] "GET /get_board_state?idGame=2&idPlayer=3 HTTP/1.1" 200 -
{'idPlayer': ['4'], 'idGame': ['2']}
Game solution=[<Card(id=21, name=Billiard Room)>, <Card(id=6, name=Revolver)>, <Card(id=12, name=Professor Plum)>]
127.0.0.1 - - [08/Dec/2015 19:18:01] "GET /get_board_state?idGame=2&idPlayer=4 HTTP/1.1" 200 -
/make_accusation
{"cards":[1,7,13],"idGame":2,"idPlayer":3}
127.0.0.1 - - [08/Dec/2015 19:18:02] "POST /make_accusation HTTP/1.1" 200 -
{'idPlayer': ['3'], 'idGame': ['2']}
Game solution=[<Card(id=21, name=Billiard Room)>, <Card(id=6, name=Revolver)>, <Card(id=12, name=Professor Plum)>]
127.0.0.1 - - [08/Dec/2015 19:18:02] "GET /get_board_state?idGame=2&idPlayer=3 HTTP/1.1" 200 -
{'idPlayer': ['4'], 'idGame': ['2']}
Game solution=[<Card(id=21, name=Billiard Room)>, <Card(id=6, name=Revolver)>, <Card(id=12, name=Professor Plum)>]
127.0.0.1 - - [08/Dec/2015 19:18:02] "GET /get_board_state?idGame=2&idPlayer=4 HTTP/1.1" 200 -
sstangle73 commented 8 years ago

actually seems like this works at any start of the turn

studansp commented 8 years ago

Part of a broader issue with accusations