Skip to content

anders88/firstTakesAllSolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published