6.3.5 Cmu Cs Academy May 2026
Unlike text-based problems on LeetCode or Codecademy, CMU CS Academy asks you to build shapes, animate objects, and respond to user input (mouse clicks and keyboard presses) within a 400x400 canvas. Unit 6 changes everything. In earlier units, code runs top-to-bottom and stops. In Unit 6, you write event handlers —functions that sit dormant until a specific action occurs.
def onKeyPress(key): global circle # Movement speed speed = 15 6.3.5 Cmu Cs Academy
Happy coding, and may your keypresses always be detected! This article is part of a series on CMU CS Academy exercise solutions. For help with 6.3.6, 6.4.1, or the final project, check out the related guides. Unlike text-based problems on LeetCode or Codecademy, CMU
In the CMU CS Academy curriculum—specifically within the (Introduction to Programming) or CS1 courses—Unit 6 is dedicated to "Events and Interactions." Section 3 focuses on keyboard input, and exercise 6.3.5 is where the rubber meets the road. In Unit 6, you write event handlers —functions
If you are currently navigating the vibrant, graphics-driven world of CMU CS Academy , you have likely encountered the infamous checkpoint 6.3.5 . For many students, this specific exercise represents the first major leap from simple animation loops into the realm of interactive event handling.
# Hold-to-move (smooth) moveLeft = False def onKeyPress(key): global moveLeft if key == 'left': moveLeft = True
This article will break down exactly what 6.3.5 requires, the core concepts you need to master, common pitfalls, and a step-by-step strategy to solve it efficiently. Before we dissect the specific exercise, let's establish the platform. CMU CS Academy is a free, online, project-based curriculum developed by Carnegie Mellon University. It uses a custom, simplified version of Python (built around the cmu_graphics library) to teach computer science fundamentals through visual, interactive graphics.