Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1.01 KB

readme.md

File metadata and controls

34 lines (26 loc) · 1.01 KB

FirstTakesAll Solver

Starting points in various languages for participants in the First Takes All game

Advanced setup

You do not need to bother about this if you checkout one ofr the starting points here, but if you want to use another language or setup yourself here is how.

You read questions by doing a http get. And post answers by doing a http post.

  • SERVER_ADDRESS The address to the server where the game is hosted
  • PLAYER_ID The player id you get when registering
  • CATEGORY The category of question you want to read or answer. For example Echo

To read questions:

Do a http get to

SERVER_ADDRESS/game?playerid=PLAYER_ID&category=CATEGORY

You will get an json array containing the questions

To answer questions

Do a http post to

SERVER_ADDRESS/game

The payload should be a JSON like this:

{"playerId":"PLAYER_ID","answers":[]}

You should put the answers into the answers array

License

Distributed under the Eclipse Public License (http://www.eclipse.org/legal/epl-v10.html)