Level One

Welcome to the Techswitch racing pit crew!

We're working on an automated robotic pit team, and you're going to be writing the program that will fix cars up and get them back on the track.

To start with we're going to just teach our program how to replace a wheel on a car. There's a car in the pits with one old set of tyres. You have two commands your program can use:

Unscrew Wheel: this command will remove an old set of tyres from one wheel on the car

Screw wheel: this command will screw on a new set of tyres to the car - assuming there's a wheel that has no tyres on.

Use the drag and drop blocks below to make the first version of your program that can replace a single wheel. When you're ready to test your program, hit Run, or Step to step through your program line by line.

Click below to start making your program
{
    "programCursor": 0,
    "memory": {
        "counter": 0
    },
    "check": false,
    "carInPit": {
        "tyres": [
            "Old Tyres",
            "New Tyres",
            "New Tyres",
            "New Tyres"
        ],
        "frontWing": "working"
    },
    "waitingCars": []
}