Robot Soccer Lab
Student robot soccer is played by small round robots that chase an infrared ball on a green field with a referee watching. The robots get no help: no camera, no map, only a ring of sensors that says where the ball glows from, a compass, and whatever their program decides. Robot Soccer Lab gives a student that robot in the browser. They program it in Blocks or Python, from the first idea that fails (drive at the ball) to a team of two that plays a full match.
Using this with a class? Make a free class and add your students yourself: each gets a username and password, with no email or Google account needed. Or give them one join code. Using Google Classroom? Post the link there; with a free class, the link also puts each student in your class, so you see their work. mytekDev is also available from the Google Workspace Marketplace, so your school's Google admin can install it for everyone.A first lesson: Open it on the projector at Level 1 and press play. The robot turns until the ball is straight ahead and drives at it, and pushes the ball into its own goal. Ask the class why: it was behind the ball's wrong side, and driving straight at a ball pushes it away from you. Then open card one, put its blocks in, and press play again. The robot slides round the ball first and scores in the blue goal.
Set up a free class Share to Google ClassroomHomeschooling? A step-by-step kit uses Robot Soccer Lab and ends with a certificate. See the kit
What a student actually does
The first view is a soccer field in a hall, a round red robot in the middle and an orange ball beside it. The robot already has a program, the one everybody writes first: turn until the ball is at 12 o'clock, then drive at it. Press play and it pushes the ball into its own goal. Card one shows the fix in blocks, go round the ball until it is straight ahead, and the same robot scores in the blue goal.
Every level is a robot, a ball and a goal to reach, judged by a referee who follows the rules of student robot soccer. Get behind the ball from anywhere. Read the compass so the robot faces the goal while it moves. See the white line with line sensors and stay in bounds. Kick, with a kicker that has to pass the rules' power test. Stop a set distance from the ball by reading the ring's strength. Keep goal against five shots. Then two robots running one program, a striker and a goalie, and the referee's calls: multiple defense, pushing, lack of progress, out of bounds.
The Robot menu opens a configurator: three or four omni wheels, a ring of 8, 16 or 24 sensors, a kicker, line sensors, distance sensors and a dribbler. Each part has a weight, and a robot over 1.5 kg may not play. Level 11 turns round with the ball on a dribbler, Level 12 drives into the ball at two speeds and then into the bigger ball of the entry league, with a table of speeds and momentum, and Level 13 is a match of two halves against a built-in team: the Wanderers, the Chasers, the Orbiters, the Keepers or the Squad.
Everything runs on the student's computer with the same arithmetic on every one, so the same program and the same seed play the same match in Chrome, Safari or Firefox. Help, Same on every computer? checks it. In a saved project, Level 13 can also play a classmate's team that was shared with the class, inside the same safe sandbox; nothing of theirs is kept, and there is no public leaderboard.
The ring is how the robot finds the ball. Each sensor reads how bright the ball glows from its side; the program gets the strongest direction as a clock position, 12 straight ahead, or an angle and a strength. Here the ball is at 5 o'clock, behind the robot on its right.
What they are learning while they work
Nothing here is presented as a lesson. This is what the robot and the levels are made of.
| What the student does | What it is |
|---|---|
| Turns the ball's clock reading into an angle: clock times 30 | Angles and a unit conversion. Twelve clock positions round a circle are 30 degrees apart, so 3 o'clock is 90 degrees, to the robot's right. |
| Moves at the ball's angle plus 60 to get round it | An offset that depends on the input. Driving straight at the ball pushes it the wrong way from behind. Adding an angle that grows with the ball's position makes the robot curve round it first. |
| Turns while the heading is over 20 and under 340 | Conditions with a buffer. A dead band round 0 stops the robot twitching left and right as the compass wobbles. |
| Backs away from the white line in the direction it came from | Sensors and a reflex. The line sensors say which way the line is. Moving the other way, before anything else, keeps the robot in bounds. |
| Steers by ball_angle(), the sixteen sensors added up as arrows | Vector sums. Each sensor's reading is an arrow along its direction. ball_angle() adds them up, and the sum points at the ball more finely than the brightest sensor alone. |
| Runs one program on two robots, a striker and a goalie | Roles and messages. robot.number() tells the program which robot it is on, and robot.send() and robot.message() let the two tell each other numbers. |
| Compares the robot's and the ball's momentum before and after a hit | Conservation of momentum. Mass times speed, added up for the robot and the ball, is the same just before and just after a head-on hit. The bigger ball slows the robot about three times as much. |
| Picks parts to stay under 1.5 kg | Design under a constraint. A fourth wheel is faster straight ahead but weighs 125 g. Every part is a trade. |
How to tell whether it landed
Ask, and let them show you on the field. A student who has understood it can answer these without the app's help.
- The starter robot scored in its own goal. Why does driving straight at the ball do that?
- The ball is at 4 o'clock. What angle is that from the robot's front, and which way should the robot move to get behind it?
- Why does the robot have to stop turning when the compass reads close to 0, and not exactly at 0?
- Your robot touches the white line. Which way should it move, and why that way?
- Why is the sum of all the ring's sensors a better guide to the ball than the brightest one?
- Two robots run one program. How does each one know whether it is the striker or the goalie?
- The referee called multiple defense. What were your robots doing, and what would you change?
- In Level 12 the robot hit the big ball at the same speed as the small one. Why did it slow down more?
Use it in your subject
Not a technology class? Then the app is how students show what they learned in your unit. More projects for every subject.
Computer science, middle and high school (CSTA 2-AP-12, 2-AP-13, 2-AP-14, 2-AP-17, 3A-AP-16, 3B-AP-10)
Loops that read sensors and act, conditions, functions for a striker and a goalie, events and messages between two robots, and testing a program against a referee and against other teams.
Math (HSN-VM)
Angles from clock positions, an offset that grows with an angle, and the ring's readings added as vectors.
Physical science (MS-PS2-1, HS-PS2-2), Level 12 only
Head-on collisions in a straight line: equal and opposite pushes, and momentum added up for the robot and the ball, the same before and after.
Engineering design (NGSS MS-ETS1-1 to 4, HS-ETS1-2, HS-ETS1-4)
A robot built from parts under a weight limit and a kicker under a power test, judged by a computer simulation against criteria and other designs.
Practical notes
- AgesGrades 6 to 12. Levels 1 to 6 work from grade 6 in Blocks; Levels 7 to 13 and the Python fit high school.
- TimeLevels 1 to 3 fit a class period. Levels 4 to 9 are two or three periods; Levels 10 to 13 make a second unit, ending in a match.
- EquipmentA computer or Chromebook with a modern browser. Nothing to install. Sound is optional (the referee's whistle and the crowd). A projector for the opening; a printer for the team paper, if the class hands one in.
- CostFree. The app has no paid tier and no AI.
- PrepPlay Level 1 once yourself: press play and watch the own goal, then open card one, put its blocks in and play again.
- In a groupOne robot per student, or pairs: one drives the program while the other predicts what the robot will do before each play.
For a class with one projector
Run Level 1 on the projector and ask the class to predict where the ball will go before you press play. Then turn on Robot, Show the receivers' rays, so everyone can see the ring's sixteen readings, and ask which sensor sees the ball most. Show card one's blocks, ask what each one does, and play it again.
Common questions
Is it free?
Yes. Robot Soccer Lab has no paid tier, and it can be tried right on this page without an account. Saving needs an account.
Does it work on a Chromebook?
Yes. It runs in the browser with nothing to install.
Is it RoboCupJunior?
It is modeled on the RoboCupJunior Soccer rules (the field, the ball, the robot's size and weight, out of bounds, the referee's calls), and it is not affiliated with or endorsed by the RoboCup Federation. Teams who play can use it to try a strategy without a field or a robot; the official rules are linked in the app's help.
Can students play each other?
Yes, inside a class. In a saved project, Level 13 can play a classmate's team that was shared with the class: their program runs in the same safe sandbox and stops if it never waits, and nothing of theirs is kept. There is no public leaderboard.
What does it simplify?
The field's walls stand straight up, and the ball rolls on the flat carpet without hopping or spin. The kicker sends the ball straight off the robot's front. The carpet's friction, the bounces, and the robot's speed and acceleration are tuned values, not measurements. The infrared ball weighs what a golf ball of its size weighs, and the big ball's weight is our estimate. Level 13's halves are 2 minutes, not 10, so a robot out of bounds sits out 12 seconds, not a minute; the teams do not swap ends at half time, and the first kickoff has nobody stepping up to the ball. A robot pinned to the wall by an opponent for a second is lifted to a neutral spot, where a real referee would nudge it back. Nothing breaks.
Does every computer play the same match?
Yes. The match uses only arithmetic that every computer does the same way, and the noise in the sensors comes from a seed, so a program and a seed play the same match everywhere. Each press of play takes the next seed, so two runs differ, as two real matches would.
Still have a question? Ask us, and a person will write back.
Where to go next
Badge kits and learning kits
Step-by-step projects in Robot Soccer Lab that end with a certificate: for a scout badge, or for homeschool families and classes.
- Score your first goal: Learning kit badge, or the learning kit for grades 6-8
Lesson plans
4 ready-to-teach class periods with a teacher plan, a student worksheet, an exit ticket with answers, and the standards it meets.
Start with Robot Soccer Lab
Trying it costs nothing and takes about five minutes. An account is what makes the work last.
Robot Soccer Lab is one of the robotics apps on the platform. It is modeled on the RoboCupJunior Soccer rules and is not affiliated with or endorsed by the RoboCup Federation.
Page last reviewed November 2026.
Google, Google Classroom and Chromebook are trademarks of Google LLC.