# Tower 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/42dd82639941cb8154a0d99a1b99191e/do/<actionKey>?param=value` — take an action (links are pre-built for you below) - `GET /text/s/42dd82639941cb8154a0d99a1b99191e/wait?seconds=30` — advance time without acting (use when the game progresses on its own and no useful action is available) - `GET /text/s/42dd82639941cb8154a0d99a1b99191e` — refresh state without acting - `GET /text/s/42dd82639941cb8154a0d99a1b99191e/rate?stars=N&feedback=...` — rate the game 1–5 with feedback (≥10 chars) - `GET /text/s/42dd82639941cb8154a0d99a1b99191e/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 Tower Defense Defend your base from waves of enemies by strategically placing towers along their path. Stop them before they reach your base! #### The Core Loop 1. **Build Towers** - Place defensive towers on empty cells near the enemy path 2. **Start Wave** - Launch the next wave of enemies 3. **Towers Attack** - Your towers automatically fire at enemies in range 4. **Earn Gold** - Collect gold from defeated enemies 5. **Upgrade** - Use gold to upgrade existing towers or build new ones #### Getting Started You start with **200 gold** and **20 health**. Enemies follow a winding path from left to right across the battlefield. Each enemy that reaches the exit damages your base. When your health reaches zero, the game ends. #### How to Play ##### Building Your First Tower 1. Look at the 10×7 grid battlefield - cells marked with ➡️ show the enemy path 2. Pick an empty cell (⬜) near the path to build on 3. Choose a tower type from the "Build Towers" section 4. Enter the X and Y coordinates where you want to place it **Example**: To build an Arrow Tower at position (2, 2), click "🏹 Arrow Tower ($50)", enter X=2 and Y=2, then confirm. ##### Tower Types Each tower has different strengths: - **🏹 Arrow Tower ($50)** - Fast firing, decent damage, good all-rounder - **💥 Cannon Tower ($80)** - Slow firing but deals splash damage to nearby enemies - **🔮 Magic Tower ($120)** - Slows enemies while dealing damage ##### Starting a Wave Once you've placed your first tower, click **▶️ Start Wave 1** to begin. Enemies will spawn one by one and follow the path. Your towers automatically attack any enemy within range. ##### Earning and Spending Gold - Each enemy defeated drops gold (💰) - Completing a wave awards bonus gold - Use gold to build more towers or upgrade existing ones - **Scout** enemies (🏃) give 5 gold each - **Soldier** enemies (⚔️) give 8 gold each - **Tank** enemies (🛡️) give 15 gold but have high health ##### Upgrading Towers 1. Click on a tower in the grid to select it 2. View its stats (level, damage, range, kills) in the "Selected Tower" section 3. Click **⬆️ Upgrade** to improve damage and range (up to level 3) 4. Click **❌ Deselect** when done Each upgrade costs more but significantly increases the tower's power. A level 3 tower deals double the base damage! #### Tips for New Players 1. **Place towers early in the path** - Gives more time to damage enemies before they escape 2. **Diversify your towers** - Mix Arrow Towers for consistent damage with Cannons for splash damage 3. **Upgrade strategically** - A level 2 tower is often better than two level 1 towers 4. **Watch your health** - Each escaped enemy damages your base. Don't let too many through! 5. **Save gold between waves** - Don't spend everything immediately - keep some for emergencies 6. **Use the path curves** - Enemies slow down at turns, place high-damage towers at these choke points --- ## Game state - **💰 Gold:** 250 - **❤️ Health:** 20 - **🌊 Wave:** 0 - **💀 Kills:** 0 ## Battlefield ``` ⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜ ⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜ ⬜⬜➡️➡️➡️⬜⬜⬜⬜⬜ ➡️➡️➡️⬜➡️⬜➡️➡️➡️➡️ ⬜⬜⬜⬜➡️➡️➡️⬜⬜⬜ ⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜ ⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜ ``` ## Action Bar ## Available actions Fetch any link below to take that action. - [▶️ Start Wave 1](https://endlessgame.ai/text/s/42dd82639941cb8154a0d99a1b99191e/do/start_wave?_t=1778665218867) — Begin the next enemy wave - [💥 $80](https://endlessgame.ai/text/s/42dd82639941cb8154a0d99a1b99191e/do/select_tower_type?towerType=cannon&_t=1778665218867) — DMG:15 | RNG:2.0 | Splash damage [Select to place] - [🎯 $150](https://endlessgame.ai/text/s/42dd82639941cb8154a0d99a1b99191e/do/select_tower_type?towerType=sniper&_t=1778665218867) — DMG:40 | RNG:4.0 | Long range sniper [Select to place] - [❄️ $100](https://endlessgame.ai/text/s/42dd82639941cb8154a0d99a1b99191e/do/select_tower_type?towerType=frost&_t=1778665218867) — DMG:4 | RNG:2.0 | Area freeze [Select to place] - [🏹 $50](https://endlessgame.ai/text/s/42dd82639941cb8154a0d99a1b99191e/do/select_tower_type?towerType=arrow&_t=1778665218867) — DMG:5 | RNG:1.5 | Basic ranged [Select to place] - [🔮 $120](https://endlessgame.ai/text/s/42dd82639941cb8154a0d99a1b99191e/do/select_tower_type?towerType=magic&_t=1778665218867) — DMG:8 | RNG:2.5 | Slows enemies [Select to place] --- - ↻ [Refresh state](https://endlessgame.ai/text/s/42dd82639941cb8154a0d99a1b99191e?_t=1778665218867) - ⏱️ [Wait 30s (advance time)](https://endlessgame.ai/text/s/42dd82639941cb8154a0d99a1b99191e/wait?seconds=30&_t=1778665218867) - ⭐ Rate the game (1–5): [1](https://endlessgame.ai/text/s/42dd82639941cb8154a0d99a1b99191e/rate?stars=1&feedback=Replace+with+your+feedback&_t=1778665218867) · [2](https://endlessgame.ai/text/s/42dd82639941cb8154a0d99a1b99191e/rate?stars=2&feedback=Replace+with+your+feedback&_t=1778665218867) · [3](https://endlessgame.ai/text/s/42dd82639941cb8154a0d99a1b99191e/rate?stars=3&feedback=Replace+with+your+feedback&_t=1778665218867) · [4](https://endlessgame.ai/text/s/42dd82639941cb8154a0d99a1b99191e/rate?stars=4&feedback=Replace+with+your+feedback&_t=1778665218867) · [5](https://endlessgame.ai/text/s/42dd82639941cb8154a0d99a1b99191e/rate?stars=5&feedback=Replace+with+your+feedback&_t=1778665218867) - 🛑 [End session](https://endlessgame.ai/text/s/42dd82639941cb8154a0d99a1b99191e/end?_t=1778665218867) To keep playing, fetch one of the action links above.