initial icfprequests module

main
Michael Meyer-Geerken 2025-09-05 17:46:39 +02:00
parent 864109b858
commit e4941a7453
1 changed files with 29 additions and 0 deletions

@ -0,0 +1,29 @@
import requests
import json
endpointUrl = "https://31pwr5t6ij.execute-api.eu-west-2.amazonaws.com/"
selectUrl = endpointUrl + "select"
exploreUrl = endpointUrl + "explore"
guessUrl = endpointUrl + "guess"
id = "icfp@zeuxis.de DHf1KQyE3vCvMqPaA4LLlw"
def select( id, problem):
selectJson = {
"id": id,
"problemName": problem
}
response = requests.post(selectUrl, json=json.dumps(selectJson))
return response.json()
def explore( id, plans):
exploreJson = {
"id": id,
"plans": plans
}
response = requests.post(exploreUrl, json=json.dumps(exploreJson))
return response.json()
def guess( id, rooms, startingroom, connections ):
pass