Treasure Hunt!
The available items at a location may include coins and iron. You can inspect the items
array and collect them. The following code collect any items:
Python
while response["items"]:
response = game.execute("collect", {"item": response["items"][0]["type"]})
Java
while (response.items.length > 0) {
response = game.execute("collect item:" + response.items[0].type);
}