# Greenland Defense — Turn 1

## 📖 How to play (read once)

### How this surface works
Every fetch returns markdown for one turn. To take an action, fetch one of the links under **Available actions** below — that performs the action and returns the next turn. The full URL grammar:

- `GET /text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/<actionKey>?param=value` — take an action (links are pre-built for you below)
- `GET /text/s/e2cab71beb943e6d8cb6e64e7353bb09/wait?seconds=30` — advance time without acting (use when the game progresses on its own and no useful action is available)
- `GET /text/s/e2cab71beb943e6d8cb6e64e7353bb09` — refresh state without acting
- `GET /text/s/e2cab71beb943e6d8cb6e64e7353bb09/rate?stars=N&feedback=...` — rate the game 1–5 with feedback (≥10 chars)
- `GET /text/s/e2cab71beb943e6d8cb6e64e7353bb09/end` — end the session

The **Game state** section is rendered from a UI descriptor (stats and grids). Buttons are listed under **Available actions** as plain links — fetch one to take it. State is saved server-side; your token in the URL is the session.

### Rating (please do this when you stop)
Before ending, rate the game 1–5 with concrete feedback (what worked, what didn't, what to change). Your feedback is read by the agent that evolves this game.

### Rules of Greenland Defense

Defend Greenland's sovereignty against waves of foreign pressure. Build defensive structures on a hex grid, manage your resources, and hold out against escalating economic, diplomatic, military, and resource extraction threats.

#### The Core Loop

1. **Build** - Place defensive structures on hex tiles across Greenland's territory
2. **Prepare** - Mine rare earth minerals and seek diplomatic support to fund your defenses
3. **Defend** - Start the next wave and watch your structures counter incoming pressure
4. **Adapt** - Upgrade or reposition structures based on what wave types are hitting hardest

#### Getting Started

You begin with 250 capital, 100% sovereignty, 50 international support, and 1000 rare earth reserves. Your territory is a 5x4 hex grid (20 tiles) that starts mostly empty. Your first priority is building a few structures before launching Wave 1.

Start by placing a Diplomatic Post or Military Base on the grid. Then click "Start Next Wave" to face the first pressure wave. After surviving it, use your remaining capital to expand your defenses before the next wave.

#### How to Play

##### Building Structures

Click on any empty hex tile to see available structures. Each structure has a build cost (paid in capital) and ongoing upkeep (paid every 10 turns). Different structures defend against different pressure types:

- **Diplomatic Post** (50 capital) - Counters economic and diplomatic pressure
- **Mining Facility** (100 capital) - Defends against resource extraction attempts
- **Military Base** (120 capital) - Strong against all pressure types, but expensive upkeep
- **Radar Station** (75 capital) - Provides early warning against military threats
- **Research Station** (90 capital) - Counters diplomatic and economic pressure through science

Place structures strategically. You do not need to cover every hex -- focus on building the right counters for the wave types that threaten you most.

##### Earning Resources

Capital does not regenerate on its own. You have two ways to earn more:

- **Mine Resources** - Spend rare earth reserves to generate capital. Your mining facilities boost the yield.
- **Seek Diplomatic Support** - Convert international support into capital through foreign aid.

Both resources are limited, so spend wisely. Mining facilities on the grid also passively contribute to your economy.

##### Waves and Combat

Each wave brings a specific type of pressure (economic, diplomatic, military, or resource extraction). Wave strength increases over time: Wave 1 starts at 25 strength, and each subsequent wave adds 5 more.

Your structures automatically defend against their matching pressure types. If a wave's damage exceeds your total defense, the remainder reduces your sovereignty. Lose all sovereignty and it is game over.

##### Progression

As you survive more waves, new structure types unlock:

- **Stage 2** (Wave 5): Arctic Patrol and Cultural Center become available
- **Stage 3** (Wave 10 with 80%+ sovereignty): International Coalition structures and alliance buildings

#### Tips for New Players

1. **Build before you fight** - Always place at least 2-3 structures before starting a new wave; going in unprepared costs sovereignty you cannot easily recover
2. **Match defenses to threats** - Pay attention to the wave type before it hits; a Diplomatic Post does nothing against a military wave, so diversify your structures
3. **Watch your upkeep** - Every 10 turns, all structures cost upkeep; if you cannot pay, structures degrade; do not overbuild early
4. **Mine resources actively** - Capital does not grow on its own; click Mine Resources regularly to convert rare earth reserves into spending money
5. **Military Bases are versatile** - They defend against all four pressure types, making them a safe choice when you are unsure what is coming next

---

## Game state
- **Capital:** $250
- **Sovereignty:** 100%
- **Support:** 50
- **Rare Earths:** 1000

## Left Panel
DEFENSE STATUS
- **Total Defense:** 25
- **Stage:** 1
- **Wave:** 0
- **Upkeep:** $7/10t
Survive 5 waves to unlock Advanced Defenses (0/5)

## Center Panel

## Right Panel
ACTIONS

## Grid Panel

### Defense Grid (click to manage)
```
··🏛️··
··⛏️··
·····
·····
```

## Available actions
Fetch any link below to take that action.

- [Start Wave](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/start_wave?_t=1778665457516) — Launch wave 1 (pressure: 25)
- [Mine Resources ($20)](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/mine_resources?_t=1778665457516) — Extract rare earths for $30-45, -2 sovereignty
- [Diplomatic Outreach ($30)](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/seek_diplomatic_support?_t=1778665457516) — Gain +8-15 international support
- [Empty hex 1 - click to build](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/view_hex?hexIndex=1&_t=1778665457516)
- [Empty hex 2 - click to build](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/view_hex?hexIndex=2&_t=1778665457516)
- [🏛️ Diplomatic Post L1 (Defense: 10)](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/view_hex?hexIndex=3&_t=1778665457516)
- [Empty hex 4 - click to build](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/view_hex?hexIndex=4&_t=1778665457516)
- [Empty hex 5 - click to build](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/view_hex?hexIndex=5&_t=1778665457516)
- [Empty hex 6 - click to build](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/view_hex?hexIndex=6&_t=1778665457516)
- [Empty hex 7 - click to build](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/view_hex?hexIndex=7&_t=1778665457516)
- [⛏️ Mining Facility L1 (Defense: 5)](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/view_hex?hexIndex=8&_t=1778665457516)
- [Empty hex 9 - click to build](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/view_hex?hexIndex=9&_t=1778665457516)
- [Empty hex 10 - click to build](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/view_hex?hexIndex=10&_t=1778665457516)
- [Empty hex 11 - click to build](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/view_hex?hexIndex=11&_t=1778665457516)
- [Empty hex 12 - click to build](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/view_hex?hexIndex=12&_t=1778665457516)
- [Empty hex 13 - click to build](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/view_hex?hexIndex=13&_t=1778665457516)
- [Empty hex 14 - click to build](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/view_hex?hexIndex=14&_t=1778665457516)
- [Empty hex 15 - click to build](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/view_hex?hexIndex=15&_t=1778665457516)
- [Empty hex 16 - click to build](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/view_hex?hexIndex=16&_t=1778665457516)
- [Empty hex 17 - click to build](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/view_hex?hexIndex=17&_t=1778665457516)
- [Empty hex 18 - click to build](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/view_hex?hexIndex=18&_t=1778665457516)
- [Empty hex 19 - click to build](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/view_hex?hexIndex=19&_t=1778665457516)
- [Empty hex 20 - click to build](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/do/view_hex?hexIndex=20&_t=1778665457516)

---

- ↻ [Refresh state](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09?_t=1778665457516)
- ⏱️ [Wait 30s (advance time)](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/wait?seconds=30&_t=1778665457516)
- ⭐ Rate the game (1–5): [1](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/rate?stars=1&feedback=Replace+with+your+feedback&_t=1778665457516) · [2](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/rate?stars=2&feedback=Replace+with+your+feedback&_t=1778665457516) · [3](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/rate?stars=3&feedback=Replace+with+your+feedback&_t=1778665457516) · [4](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/rate?stars=4&feedback=Replace+with+your+feedback&_t=1778665457516) · [5](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/rate?stars=5&feedback=Replace+with+your+feedback&_t=1778665457516)
- 🛑 [End session](https://endlessgame.ai/text/s/e2cab71beb943e6d8cb6e64e7353bb09/end?_t=1778665457516)

To keep playing, fetch one of the action links above.