This project is a game where the player controls a robot named Stevie. Stevie can move across a grid, collect diamonds, and place them on the grid. The project includes tasks that help to learn key programming concepts such as functions, loops, conditions, and event handling.
- Pygame for graphics and animation
- Download or clone the project.
-
Clone or download the project.
-
Open the project in your Python IDE (e.g., PyCharm or any other editor).
-
Inside the file
main.py, scroll to the bottom and find the task runner:# run_task(task1, check_task1) # run_task(task2, check_task2) # run_task(task3, check_task3)
-
To run a task, remove "#" from the line of the task you want to execute. Example — running Task 1:
run_task(task1, check_task1) # run_task(task2, check_task2) # run_task(task3, check_task3)
-
Run the program:
python main.py
-
After the task finishes, add # back to disable it and uncomment another task if needed.
- Task 1: Move the robot across the grid with a set of steps.
- Task 2: Collect diamonds from various grid cells.
- Task 3: Drop diamonds on specific grid cells following a set pattern.
If you'd like to improve the project, feel free to submit a Pull Request!
This project is licensed under the MIT License.