feat: add difficulty field to prompts and wire into fight pacing

Round 1-2 picks easy prompts, 3-4 medium, 5+ hard (when tagged).
Graceful fallback to any prompt when no difficulty-tagged prompts exist.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-09 08:05:21 +00:00
co-authored by Claude Opus 4.6
parent 8d0eb4b5f9
commit a4b4963c32
4 changed files with 62 additions and 8 deletions
+1 -1
View File
@@ -360,7 +360,7 @@ async function executeFightRounds(fightId: string, botA: BotRecord, botB: BotRec
lastRound = round
const challenge = round === retroRound
? generateRetroChallenge()
: pickChallenge(usedTypes, arena.modifier)
: pickChallenge(usedTypes, arena.modifier, undefined, round)
usedTypes.add(challenge.type)
emit(fightId, 'round_start', {