← Education Lab

TEAM REWIND // CODING ARENA

DUELING CODERS

Write an autonomous robot strategy. Compile it. Run the match. Learn from the replay.

How to play

Choose a starter, edit the C++-style tick function, compile, then run a match. Your code decides whether the student robot collects pieces, scores them, or defends.

LESSON GOALBEGINNER

Loading the agent lesson…

AGENT EDITORNOT COMPILED
Agent API

view.carried_pieces · view.visible_pieces · collectNearest() · score() · defend() · hold() · driveTo(x, y)

One bounded action is resolved per tick; coordinates are clamped to the arena.
MATCH REPLAYREADY
STUDENT0
READYTICK 0/900
OPPONENT0
EXPLANATIONCompile and run to begin

The replay will explain collection, scoring, invalid actions, and the final result.

Action tick(const Observation& view, AgentState& state) { ... }
EVENT LOG0