FREE EXPERIENCE CLASS · 体验课
AGENT ARCADE

Teach the Bot. Test the Bot. Break the Bot.教会它 · 测试它 · 找出它的弱点

Thursday, August 20, 2026 · 60 minutes · Grades 8–12 · no installation

▶ Launch Agent Arcade   Open mission sheet

Cold open · no explanation yet

Who will survive an unseen level: you, your bot, or neither?

LEVEL SEED · ???AI TAKEOVERSCORE · 000
C
▲
▲

Vote first: What will make the biggest difference?

Prediction saved. We’ll compare this class vote with the controlled experiment later.

Today’s mission · 你要完成什么

One game. One agent. One defensible result.

①PLAYHuman demonstration
真人示范
→
②TRAINLearn state → action
学习策略
→
③TAKE OVERAI drives live
AI 接管
→
④BREAK ITUnseen levels
未见关卡
→
⑤DEFENDEvidence + limit
证据与边界

You leave with

Your gameplay CSV, a trained browser agent, a controlled-experiment receipt, and a one-paragraph research claim.

No setup tax

No Python, API key, account, download, camera, or microphone. Everything runs locally in one browser tab.

Scope · exciting and safe

This is an AI game-agent sandbox—not a commercial-game cheat.

Inside our sandbox

  • We own the game rules and test levels.
  • The agent sees only four numeric sensors.
  • We can pause, inspect, and reproduce every decision.

Outside today’s scope

  • No connection to Fortnite, Roblox, Minecraft, or other services.
  • No bypassing anti-cheat or access controls.
  • No collection of identity or private behavior.
Research name: automated game-playing agent · Classroom nickname: “AI外挂实验室”
Game rules · 90-second briefing

Every step earns +0.02 survival; events add a bonus or penalty.

← →

Choose

LEFT · STAY · RIGHT

+0.02

Survive

Base reward every decision step

◉ +10

Collect

Coin event bonus

▲ −12

Avoid

Hazard event penalty

CSV reward for one row= +0.02 survival + event reward
no event → 0.020  ·  coin → 10.020  ·  hazard → −11.980

▶ Open the game in a new tab

Lab 1 · 8 minutes · Teach the Bot

Play purposefully—not perfectly—and become the dataset.

MODE · HUMANCOLLECT DEMONSTRATIONSROWS · ↑
C
▲
▲

Your checklist

  1. Press Player Run.
  2. Play purposefully until you have ≥ 80 recorded examples.
  3. Use LEFT, STAY, and RIGHT; avoid long idle runs.
  4. From those rows, copy one difficult moment into Part A.

Part A is an analysis note: that moment already remains in the training data. Do not add or remove a row.

Open the black box · picture → numbers → decision

One frame becomes four measurements, one action, and one outcome.

PLAYER · lane 0 HAZARD C obs_distance0 near · 1 far coin_distance obs_dx = −0.50 coin_dx = +0.50
FieldPlain-English meaning
obs_dxobstacle horizontal offset: − left · 0 same lane · + right
obs_distanceforward distance to nearest hazard: 0 near · 1 far / none
coin_dxcoin horizontal offset: − left · 0 same lane · + right
coin_distanceforward distance to nearest coin: 0 near · 1 far / none

dx means “delta x”: horizontal position relative to the player—not absolute screen pixels.

STATE · what it sees[−0.50, 0.18, +0.50, 0.44]
→
ACTION · your labelRIGHT
→
REWARD · immediate total+0.02 survival only · coin 10.02 · hazard −11.98
Quick check · who is doing the labeling?

Quick check · tap an answer

During Player Run, what is the training label for each row?

The current k-NN learns sensor state → human action. Reward is logged for evaluation, not used to train this policy. Every demonstration—including a mistake—is a label the agent may copy.

The agent loop · every 100 milliseconds

Observe → compare → choose → act → observe again

①OBSERVE4 sensors
→
②COMPAREnearest examples
→
③VOTELEFT · STAY · RIGHT
→
④ACTmove one lane
↺
Policy: a function that maps a state to an action. The game’s AI is an agent because its choices change the next state it will observe.
The model · watch k-NN make one decision

New point → 9 nearest demonstrations → weighted vote → RIGHT

Action labels

LEFTSTAYRIGHT

① Find neighbors

k = 9

Smallest two-feature distances; the real game repeats this in four dimensions.

What is happening?

Start with the two feature axes.

② Weighted vote

LEFT17%
STAY33%
RIGHT50%

Neighbors: LEFT 2 · STAY 3 · RIGHT 4
Closer points contribute more.

③ PREDICTION · RIGHT →

Teaching projection: two features make distance visible. The production policy uses all four sensors, k = 9, inverse-distance votes, and class balancing.

Coding-level demo · focused JavaScript teaching extract

Nine lines turn nearby demonstrations into the next action.

9 lines · focused predict()
environment.jsstate · sensors · rewards
policy.jstrain · predict · votes
app.jscontrols · loop · CSV
experiment.jsunseen-level evaluation

Listen: runtime + source tour.   Orange audio: the nine-line predict example.   Open the complete production policy.js on GitHub

Read code like a scientist · line by line

Every line makes a claim we can test.

01

Contract: one state + demonstration rows → one action.

02

Represent: convert the visible situation to four numbers.

03–05

Compare: square feature differences, sort by distance, keep the nearest nine.

06

Initialize: start LEFT, STAY, and RIGHT votes at zero.

07

Weight: closer examples contribute a larger vote; .025 prevents division by zero.

08

Decide: sort actions by vote and return the winner.

09

Close: finish one inspectable prediction.

Debugging question: If every demonstration says STAY, which line is wrong? None. The data—not the syntax—fails to cover LEFT and RIGHT.
Lab 2 · 10 minutes · Train and release

Train your agent, then hand over the controls.

1 · Train

Press Train My Agent. Read the training receipt: rows and action balance.

2 · Take over

Press AI Takeover. Keep your hands off the keyboard and watch its sensor rays.

3 · Compare unseen

Run AI · Unseen, then Human · Unseen. Record the completed scores and one failure in Part B.

Read the local score panel: completed runs, best, and average. Both unseen modes follow the same held-out seed sequence; Human · Unseen actions never enter training.

Return to your running game

Read the overlay · do not anthropomorphize

The animation is not the explanation—the decision receipt is.

AI BRAINRIGHT · 55%k = 9
LEFT
STAY
RIGHT

Three layers of explanation

  1. Observation: exact sensor values.
  2. Decision: action probabilities.
  3. Outcome: reward and collision.

“The AI wanted the coin” is a story. “RIGHT had the highest weighted vote” is inspectable.

From game to research · turn fun into a test

Our question changes one thing—and fixes the data budget.

With the same 240 demonstration rows, does training on more level seeds improve action accuracy on unseen levels?

Change

1 seed versus 12 seeds in training demonstrations.

Hold fixed

240 rows, four sensors, weighted k-NN, k=9, and the same test seeds.

Measure

Accuracy on 600 expert-labeled actions from 20 unseen seeds; game score as a secondary outcome.

Experiment design · isolate the cause

Quick check · tap an answer

The 12-seed agent has 2,400 training rows; the 1-seed agent has 240. Can a score difference be attributed to level diversity?

No. Diversity and data amount are confounded. Give both agents the same number of rows, then change only how many level seeds produced them.

Lab 3 · 8 minutes · Run the fair test

Same rows. Same model. New test levels.

In Agent Arcade

  1. Scroll to Generalization test.
  2. Press Compute fixed test.
  3. Record both accuracies and mean scores.
  4. Calculate the percentage-point difference.

Before seeing the result

Write your prediction and mechanism:

“I predict ___ because diverse levels should / should not ___.”

▶ Run the generalization test

Write the result · observation before explanation

Use a four-part evidence sentence.

①SCOPEthis browser experiment
+
②RESULTtwo measured accuracies
+
③LIMITone game · one model
+
④NEXT TESTrepeat and extend
Sentence frame ▸ In this three-lane game, the agent trained on [12 / 1] seed(s) achieved [A]% versus [B]% unseen-level action accuracy with 240 rows each. Because we tested one environment and one k-NN setting, the result is preliminary. Next, we would repeat across seeds and compare another policy model.

Read the full game-agent manuscript   PDF

Open research backing · this question already matters

Our tiny game mirrors real benchmarks—at classroom scale.

Procgen

16 procedurally generated game-like environments designed to measure sample efficiency and generalization.

Paper · MIT-licensed code

GVGAI

An open framework for agents that must play many games, including games they did not train on.

Official repository

NetHack Learning Dataset

Large collections of human and symbolic-bot trajectories support imitation and human-versus-bot research.

NeurIPS dataset paper

Open-data extension · real players, licensed source

Can four interpretable sensors retain most of a full telemetry model?

SkillCraft1 · UCI

3,395 StarCraft II player records · 15 behavioral telemetry fields · target is LeagueIndex ≥ 5.

Dataset DOI · Blair, Thompson, Henrey & Chen (2013) · CC BY 4.0

Controlled comparison

4 sensors: APM, hotkey selection, action latency, perception–action cycles.

15 sensors: all behavioral telemetry. Same players, target, model, preprocessing, and five folds.

RQ: How much predictive performance is lost when we use four interpretable sensors instead of all fifteen?

Executable result · five identical folds

The compact sensor set retained most—but not all—of the signal.

Four versus fifteen sensor ROC AUC

4 sensors

ROC AUC 0.861 ± 0.011
accuracy 77.6% ± 1.3%

15 sensors

ROC AUC 0.879 ± 0.012
accuracy 78.9% ± 1.2%

Mean ± SD across five stratified folds; class-balanced logistic regression; random_state=42. Observed ROC AUC difference: +0.018. Open evidence package

Open data → extended abstract · exact AI handoff

The prompt carries the evidence boundary into the writing.

Prompt used ▸ Use only this evidence receipt: n=3,395; same 5 folds; 4-sensor AUC 0.861 ± 0.011; 15-sensor AUC 0.879 ± 0.012; observed Δ=+0.018. Draft Background, Method, Results, Limitations, and Next Experiment. Say “associated with,” not “caused.” Do not invent p-values or confidence intervals. State that LeagueIndex is an operational label.

Generated result

Title: How Much Telemetry Is Enough?

Bounded takeaway: four sensors retained most of the discrimination; all 15 produced a modest gain that motivates a sensor-ablation study.

Read the extended abstract

Metric key: ROC = receiver operating characteristic curve, showing the true-positive/false-positive trade-off across thresholds. AUC = area under that ROC curve: 0.5 is chance ranking, 1.0 is perfect ranking. SD = standard deviation, the spread across the five folds.

See the full exact prompt, generated draft, source hash, code, fold results, and disclosure.

AI Toolbox move · use AI after evidence exists

Ask AI to challenge the experiment—not invent the result.

You ▸ Act as a skeptical game-AI researcher. Here is my experiment receipt: 240 rows per condition; 1 versus 12 training seeds; weighted k-NN with k=9; 600 held-out actions from 20 unseen seeds; observed accuracies [A] and [B]. Separate (1) observation, (2) possible explanations, (3) confounders, and (4) the next controlled experiment. Do not invent missing results or claim causation.

Good AI work

Generate competing explanations, check clarity, propose an ablation, draft a bounded caption.

Still your responsibility

Supply exact numbers, verify the code path, reject unsupported claims, disclose AI assistance.

The transferable idea · one pipeline, many domains

The game is our sandbox. The research pipeline travels much farther.

Illustrated AI applications in a game, warehouse robotics, health and wellness monitoring, and sports and mobility analysis
GAME AGENTSROBOTICSHEALTH & WELLNESSSPORTS & MOBILITY
OBSERVE→REPRESENT→LEARN→TEST UNSEEN CASES→MEASURE→IMPROVE
What transfers: define the evidence, test fairly, inspect failures, and improve the next experiment.
Extension path · from class artifact to publication

The same project can grow without changing its central question.

01WORKSHOPone game · baseline
→
02POSTERrepeats · error cases
→
03ABSTRACTmultiple policies
→
04PAPERmultiple games · ablations
→
05JOURNALexternal validation

Possible next studies

State sensors vs pixels · human vs bot trajectory detection · reward hacking · noisy sensors · model latency.

Artifact package

Game code · seeds · CSV/JSONL · model settings · evaluation script · datasheet · result chart · limitations.

Venue fit: IEEE Conference on Games · AIIDE · Foundations of Digital Games. A venue is a research community, not a promise of acceptance.

2027 target cycle · use future deadlines

Build toward one confirmed deadline—and label unknown dates honestly.

IEEE Conference on Games 2027 · full paper
IEEE CoG 2027 · auxiliary / short paper
AIIDE 2027 · official CFP
FDG 2027 · official CFP
Our readiness deadlines: question freeze · 15 Oct 2026 → preregistered experiment · 15 Dec → full results · 31 Jan 2027 → CoG manuscript · 22 Feb.

Confirmed CoG dates: official CoG 2027 site. AIIDE and FDG dates are shown as TBD until their official 2027 CFPs are released.

Make the artifact · 6 minutes

Finish your one-page Agent Research Card.

  1. Question: what changed, what stayed fixed?
  2. Data: what does one row represent?
  3. Result: counts/accuracies plus the difference.
  4. Failure: one concrete agent mistake.
  5. Boundary: what can’t this test establish?
  6. Next experiment: one change, one outcome.

Peer check

Can I reproduce the numbers?
Is the comparison fair?
Does the claim stay inside the evidence?
Could I run the proposed next test?

Open / print card

Exit ticket · 最后 60 秒
THE BOT PLAYED.
YOU DID THE RESEARCH.

One thing I taught

A state → action pattern through demonstrations.

One thing I tested

Generalization under a fixed data budget.

One thing I still doubt

A failure, confounder, or untested population.

Replay Agent Arcade   Explore the 15-class course

Merit Point Academy · 恒点学术 · courses.hopeembark.org

♥ Donate ⬇ PDF
Comments✕
Visible to your instructor & classmates.