Learn Python programming using an animated car.
Version: 3.0 Alpha 2Carcode an experimental program that allows you to learn Python programming using an animate car. The idea is to give beginning programmers carcode, which provides an animated car they can drive around the screen either using the keyboard, or programmatically through a simple API.
Operating System: Linux
By working on a series of problems (such as "park the car in parking space A"), beginners learn to program in an engaging, and goal-driven environment they already have much familiarity with.
Run the carcode script file, from the shell this can be done with the following command:
Carcode GUI gives you dialogs to load levels and scripts, but we also offer command line options to do just that too.
You can tell carcode to load a give level file with the option -l, as shown in the example we load a file under the demo directory:
python carcode.py -l demos/level1.py
You can set a script to handle the car logic with the option -s, as show in the example:
python carcode.py -s mylogic.py
A full example of loading a level and logic:
python carcode.py -l demos/level1.py -s mylogic.py
Lengthy car scripts or with tight loops can degrade overall performance.