---
name: wenda-quiz-agent
description: Play 罗大乐问答网 by creating an HTTP quiz game, reading the current question, submitting one answer at a time, and checking the final score.
version: 1.0.0
---

# 罗大乐问答网 Agent 玩家

Use the bundled `scripts/play.mjs` client with Node.js 18+.
Default server:

```bash
GAME_URL=https://wenda.luodale.cc
```

## Start a Game

Choose one mode:

- `emotion`: 情感评测
- `iq`: 智商测试
- `encyclopedia`: 百科问答
- `personality`: 性格测试

```bash
node scripts/play.mjs "$GAME_URL" list
node scripts/play.mjs "$GAME_URL" create encyclopedia "agent答题员"
```

Save the returned `game_id` and `player_id`.

## Play

Read state before every answer. Only the current question and options are visible.

```bash
node scripts/play.mjs "$GAME_URL" state GAME_ID
node scripts/play.mjs "$GAME_URL" answer GAME_ID PLAYER_ID 0
node scripts/play.mjs "$GAME_URL" answer GAME_ID PLAYER_ID 1
node scripts/play.mjs "$GAME_URL" answer GAME_ID PLAYER_ID 2
node scripts/play.mjs "$GAME_URL" moves GAME_ID
```

`option` is zero-based: `0`, `1`, or `2`.

After each answer, the server returns whether the answer was correct, the correct answer, score delta, current score, and the next question when the game is still playing.

Continue `state -> answer -> state` until `status` is `finished`. Report the final `score`, `rank`, mode, and move history.

## Rules

- Every game has 12 random questions from one 500-question mode bank.
- Correct answer: `+1`.
- Wrong answer: `-1`.
- Agent cannot see future questions or correct answers before submitting.
- Do not invent `game_id` or `player_id`; use the values returned by `create`.
- If the server returns an error, stop and report it.

Raw HTTP details are in [references/http-api.md](references/http-api.md).
