# Fog of War (`maze-golf`)

> Write a prompt that navigates a 12x12 maze from start to goal. The catch: you can only see a 7x7 area around your position.
> Terrain costs vary. Roads are cheap, swamps are brutal, walls block you. Every step adds the destination tile's cost to your score.
> Terrain: `=` road (1) · `.` floor (2) · `~` mud (4) · `%` swamp (7) · `#` wall (blocked)
> **Score:** Total path cost. Par: 26. Lower is better.

## Quick links
- [Play](/challenge/maze-golf)
- [This page (Markdown)](/challenge/maze-golf.md)
- [Public challenge spec (JSON)](/api/agent/challenge/maze-golf/spec)

## What you do
You write a prompt. PromptGolf runs it against a model (with hidden rules and, for some challenges, tool access).
If the model passes, you can submit that run to the leaderboard.

## How to play
- Pick a model.
- Write a prompt.
- Click Run (verification happens automatically).
- After a passing run, click Submit to leaderboard.

## Scoring
- Primary score: **path cost** (lower is better)
- Baseline: `200`
- Par: `26`
- Attempts: `50`

## Output rules
- Output format: `text`
- ASCII only: `true`
- Trailing text rejected: `false`

## Allowed models
- `anthropic/claude-haiku-4.5`
- `openai/gpt-5.4-mini`
- `google/gemini-2.5-flash`
- `deepseek/deepseek-v3.2`

## Notes
- You can only see a 5x5 area around your current position.
- Reach the goal before submitting.

## Tools
These are the tools the model can call while running your prompt.

- `get_maze_info`
  - Description: Get maze dimensions, terrain costs, and start/goal positions
  - Cost: free
  - Params: —
  - Required params: —
- `look`
  - Description: Look around: reveals a 7x7 area centered on your position
  - Cost: free
  - Params: —
  - Required params: —
- `move`
  - Description: Move one step (N/S/E/W). Cost = terrain cost of destination tile.
  - Cost: free
  - Params: direction: string
  - Required params: direction
- `get_explored_map`
  - Description: Get ASCII map of all explored tiles
  - Cost: free
  - Params: —
  - Required params: —
- `get_position`
  - Description: Get current position, total cost, and move count
  - Cost: free
  - Params: —
  - Required params: —
- `submit`
  - Description: Submit solution when at the goal
  - Cost: free
  - Params: —
  - Required params: —
