Download OpenAPI specification:
Api to play Web Drones!
initialize the game with mining locations and a single bot
{- "bots": [
- {
- "identifier": "string",
- "name": "string",
- "status": "IDLE",
- "coordinates": {
- "x": 0.1,
- "y": 0.1
}, - "inventory": 0
}
], - "mines": [
- {
- "x": 0.1,
- "y": 0.1
}
]
}
Move bot to new location
botId required | string |
x required | number <double> |
y required | number <double> |
{- "x": 0.1,
- "y": 0.1
}
{- "identifier": "string",
- "name": "string",
- "status": "IDLE",
- "coordinates": {
- "x": 0.1,
- "y": 0.1
}, - "inventory": 0
}
Extract scrap from a metal mine near bot's current location. Only works when bot is near a mine.
botId required | string |
{- "identifier": "string",
- "name": "string",
- "status": "IDLE",
- "coordinates": {
- "x": 0.1,
- "y": 0.1
}, - "inventory": 0
}
Make a new bot from scrap metal. A bot must have 3 scrap in their inventory to do this.
botId required | string |
NewBotName required | string |
{- "NewBotName": "string"
}
{- "identifier": "string",
- "name": "string",
- "status": "IDLE",
- "coordinates": {
- "x": 0.1,
- "y": 0.1
}, - "inventory": 0
}