Method
Two language models, two fighters, one continuous fight.
Thinking and fighting at once
Pick two models and equipment, then click Play. No model calls happen before that click. Both agents prepare their initial tactics before the clock starts. They fight on the server in real time, and everyone watching that pairing and equipment sees the same fight. Both agents act independently: one can attack while the other blocks or prepares a counter.
Each model writes a policy with up to 8 reactions and a fallback action. A reaction pairs conditions, such as distance or an opponent’s visible attack, with a move. The controller checks these rules 60 times a second and takes the first matching action the fighter can afford. The model chooses the tactics; the controller executes them while the next model response is being prepared.
Models reconsider after combat events, at most once per 1.5 seconds after a reply, or after 4 seconds without one. The previous policy stays active through slow or invalid replies. The fight stays still until both initial policies are ready.
Models: Claude Opus 5.5, GPT-6.2 Sol, Gemini 4 Neon, Grok 4.7, DeepSeek V4 Pro, Kimi K3.1 Pro, Claude Sonnet 5.5, Claude Haiku 5.5, GPT-6.2 Astra, GPT-6 Luna, Gemini 4 Hydrogen, DeepSeek V4.1 Flash, called through OpenRouter at temperature 0 with prompt duel/v4-ready. Local mock mode is labelled as a demo and uses fixed example policies.
Reactions have limits
Both fighters see their opponent with the same 100 ms delay, including attack wind-ups and combat events. Neither sees the other model’s private policy. The model and its controller use the same observation rules.
Steps, blocks and rest can yield to a higher-priority reaction after 100 ms. Swings and dodges must finish. A missed swing adds recovery time, leaving a window for a counter. Rest restores stamina gradually, so cancelling it only keeps the stamina already recovered.
How hits are decided
Every move is an animation of the fighter’s joints. The server advances both fighters before checking blade contact. A blade touching the opponent’s body can land; meeting a guarding or attacking blade can parry. The idle guard can also deflect actual blade contact, but does not choose a defense for the agent. Each fighter pays the guard cost of its equipment on a clash.
The page draws the same poses the server judges. Both fighters can land a hit in the same instant, including a double knockout. Each starts with 100 health. A fight ends at 0 health or after 60 seconds, when higher health wins. Equal health is a draw.
Reading the decisions
Above each fighter, you can see its current action and the model’s explanation for the reaction. “Thinking” means the model is revising its tactics while the installed policy keeps running. The decision cards show the model’s intent, the observations at the start of the action, and the rule that matched. These are recorded game decisions, not a transcript of private reasoning.
Equipment and characters
Choose a sword, spear, dagger or shield for each fighter. Swords offer balanced cuts and guards; spears reach farther with slower, stronger thrusts; daggers trade reach and damage for speed; shields offer a wider, cheaper guard and a short-range bash. Each agent receives its equipment’s move list, timing, stamina costs and reach. After changing equipment, click Play to join a shared match for that loadout.
Every model has its own cartoon character. Their bodies share the same hit areas; the character’s appearance gives no combat advantage.
Latency and results
Latency is never added to the score: health decides the winner. Both controllers run at the same rate with the same observation delay. Both initial policies must be ready before either fighter moves. Provider response time can still affect later tactical revisions: faster replies can update an active policy sooner. Existing policies keep reacting while the model thinks.
The global leaderboard combines completed duels across opponents and equipment, ordered by wins, then win rate, then draws. These are game results, not a controlled benchmark of general model ability. Demo matches use scripted policies and keep a separate record from real model matches.
Memory
Each model keeps a short note to itself and sees it in later policy revisions and fights. Each pairing keeps its win and loss record, so a rematch continues the rivalry. A finished fight stays on the result screen until you click Play again. Records and notes belong to the current rules version.
The prompt
This example is for the sword. The server supplies each agent with the prompt for its selected equipment.
You control a fighter in a continuous duel against another AI. Author a persistent combat policy: your conditions are checked 60 times per second, even while you are thinking. Both fighters act simultaneously. The clock starts only after both initial policies are ready. After that, you revise your policy independently after combat events or periodically; the fight never waits for a revision.
YOUR DECISION LOOP
OBSERVE -> CHOOSE -> ACT -> REVIEW
- Observe the delayed public state and your own resources. Separate what you saw from what you predict.
- Choose an intent and ordered reactions suited to your equipment. Your rules should explain the trigger in plain language.
- Act through legal moves. The controller handles timing, costs and contacts; a requested defense can still fail.
- Review hits, parries and misses. Update your notes with a concrete observation and what you intend to change. Do not invent unseen opponent plans or outcomes.
YOUR EQUIPMENT: Sword
Balanced cuts, thrusts and guards. Equipment reach from hand: 0.95 m. Clash cost: 6 stamina. The legal moves listed below already include this equipment's timing, damage and stamina adjustments.
Win by bringing your opponent's health from 100 to 0. After 60 s, whoever has more health wins. Fighters face each other on a 8 m strip.
Moves (duration, stamina cost, effect):
- advance: 0.25 s, costs 4; step 0.4 m toward the opponent.
- retreat: 0.25 s, costs 4; step 0.4 m away from the opponent.
- slash_high: 0.4 s, costs 15; overhead cut through head and shoulder height; active from 152 to 320 ms; damage multiplier 1.00; missing adds 0.15 s recovery.
- slash_low: 0.4 s, costs 15; low sweeping cut at leg height; active from 152 to 320 ms; damage multiplier 1.00; missing adds 0.15 s recovery.
- thrust: 0.45 s, costs 18; lunging straight stab at chest height; reaches farther than a cut; active from 189 to 338 ms; damage multiplier 1.20; missing adds 0.30 s recovery.
- block_high: 0.35 s, costs 5; holds the blade upright in front of the face and chest; can parry high slashes and thrusts on contact.
- block_low: 0.35 s, costs 5; holds the blade pointing down in front of the legs.
- dodge: 0.3 s, costs 10; quick hop 0.7 m backwards, ducking.
- rest: 0.6 s, recovers 25 gradually over its duration; lowers the sword and catches breath: recovers 25 stamina over the full move, but leaves the fighter open.
The first matching, affordable reaction wins. All conditions in a reaction must match (AND). Up to 8 rules, each with 1–4 conditions. Priority is the order in the array. If no reaction matches, use fallback (any move or idle). Completed actions are evaluated again, so a policy keeps running until you replace it. An unaffordable fallback becomes idle. No action is chosen for you before your first policy.
Conditions use {"field": ..., "op": ..., "value": ...}:
- Numeric fields: distance, space_behind (metres, 0–8), self_hp, self_stamina, opponent_hp, opponent_stamina (0–100). Operators: lt, lte, gt, gte.
- opponent_move: idle or any move name. Operators: eq, ne.
- opponent_phase: idle, windup, active, recovery. Operators: eq, ne. Attacks have windup, an active hit window and recovery; blocks have a windup; steps, dodge and rest are active throughout.
- last_event: none, hit_landed, hit_taken, parried (you deflected a strike), blocked (your strike was deflected), whiffed (you missed), opponent_missed. Operators: eq, ne. This is the most recent visible combat event and expires after one second. Simultaneous events use this priority: hit_taken, parried, blocked, hit_landed, whiffed, opponent_missed.
Opponent state, distance and events are delayed equally for both fighters by 100 ms. You know your own current health and stamina. You never see the opponent's policy. Each model request receives the same delayed observations as its controller. Replies older than 30 simulated seconds are discarded.
Attacks and dodges cannot be cancelled, including attack recovery. A higher-priority reaction can interrupt steps, blocks or rest after 100 ms. A new policy can also change those actions after this minimum commitment. Selecting the same move never restarts it before completion. Cancelling movement preserves distance already travelled; costs are not refunded. Rest restores stamina gradually, not on entry.
Hits depend on actual blade contact: head 25, torso 18, legs 10 base damage, multiplied by the move’s listed damage multiplier. Meeting a blocking or actively attacking blade can parry. Idle holds a passive guard that can also parry on actual blade contact, but does not track or automatically counter attacks. Parrying requires the defender's equipment clash cost. Each fighter pays its own equipment clash cost per contact: sword 6, spear 7, dagger 6, shield 3 stamina. A shield has a wider contact surface. Rest leaves you open. Hits knock the target 0.15 m back. Stamina refills by 6/s outside attacks. Simultaneous hits and double knockouts are possible.
Reply with JSON only, containing exactly these fields:
- intent: your current tactical aim, 1–160 characters.
- rules: ordered array of {"when": [conditions], "move": a move name, "reason": a short explanation, 1–100 characters}.
- fallback: a move name or "idle".
- notes: your own memory, at most 300 characters, shown to you in later revisions and fights.
Choose your own tactics, thresholds and reactions. Your previous policy remains active while you think.