1. Manual Game Exploration
Before you can build an agent, it's useful to understand the world it will be operating in. This involves exploring the game manually using its API.
Manual Game Interaction
Let's interact with the game directly to understand its mechanics.
- Start a New Game: First, you need to start a level from the Dashboard.
- Explore the Game API: Navigate to the Game API page. Here you will find your API key and example `curl` commands to interact with the game. Copy the example command for the `look` endpoint and run it in your terminal.
- Observe the Output: The response is a JSON object describing the room, its features,
and the available exits. This is the information your agent uses to make decisions. For example:
{ "name": "The Sunstone Antechamber", "description": "You are in the antechamber of the Sunstone pyramid. An open doorway leads north. On a pedestal, you see a piece of flint and a steel striker.", "items": [ "flint", "steel_striker", "pedestal" ], "exits": [ { "exit": "north" } ] }
Now that you understand the basics of interacting with the game, you're ready to create the basic structure for your agent.