How to play
Your code is the brain of the fleet.
Every simulated minute, your Python decides which electric car goes where. Keep every trip on time without anyone running out of charge.

The challenge
Riyadh, 7 a.m.
A fleet of self-driving electric cars carries people across the city: to hospitals, offices and exams. Batteries run low, chargers are few, and a solar lane charges cars as they drive over it. Some trips matter more than others. Your code decides.
What you need
A laptop and a browser
Your code runs inside your own browser. Nothing to install.
Basic Python
Lists, functions and dictionaries. The starter file guides you step by step.
A player ID
Your school or university gives you one when it registers. Names never appear on the leaderboard.
How you score
Out of 100.
- 80
Mission
Get people where they need to go, on time. Urgent trips, like hospital visits, count for more.
- 10
Readiness
Finish with cars charged enough for their next trip.
- 10
Stewardship
Buy as little grid energy as possible. Solar-lane energy is free and clean.
Crashes and decisions that take too long cost points.
Beat the bosses
Two rivals stand in your way.
The HastyAl-Ajool
Charges any car below 40% battery all the way to full, first come, first served. Beat him first.
The WiseAl-Hakeem
Puts urgent trips first and rarely wastes energy. Beat him and you are among the best.
Rules
The rules
- Hand in one Python file on the My team page before the deadline (the code freeze). You can replace it until then; after that, nobody changes their code.
- Your file is run on new test days that nobody has seen. Everyone faces the same ones.
- Your code has 1 second for each decision. A slower decision is skipped (the cars keep their last orders) and costs half a point.
- The work must be your own. Files are compared for similarity, and finalists explain their code.
- AI assistants may help you learn and debug. Say so when you submit.
- The leaderboard shows player IDs, never names.
Ready? Open the Arena.
The starter file opens in the Arena. Work through it step by step, then press Run in Riyadh.