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.

Enter the ArenaDownload the starter file

An illustration of a white self-driving electric car on a winding road, trailing green light

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.

  • Al-Ajool, an orange robot racer leaning forward at speed
    The Hasty

    Al-Ajool

    Charges any car below 40% battery all the way to full, first come, first served. Beat him first.

  • Al-Hakeem, a green robot racer standing calmly with arms crossed
    The Wise

    Al-Hakeem

    Puts urgent trips first and rarely wastes energy. Beat him and you are among the best.

Rules

The rules

  1. 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.
  2. Your file is run on new test days that nobody has seen. Everyone faces the same ones.
  3. Your code has 1 second for each decision. A slower decision is skipped (the cars keep their last orders) and costs half a point.
  4. The work must be your own. Files are compared for similarity, and finalists explain their code.
  5. AI assistants may help you learn and debug. Say so when you submit.
  6. 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.

Enter the Arena