Autonomous Car Parking

Find out if we can park the car using code.

Park the car

One definite future is where most of the cars will be self-driving autonomously. How will they achieve this? Through software code, of course. Let’s code to park the car at the correct parking spot. Use the car.move() coding instruction to move the car forward by one block. If that’s all we have, envision the code required to park the car. Based on the parking visual, try writing the code in the widget below. If we park the car correctly, the parking spot will turn green. Otherwise, it will turn red. Good luck.