Opening project sandbox
Preparing the editor and runtime...
Preparing the editor and runtime...
Start from a blank editor and follow the directions below.
0/4 passed
Run your code, then check each checkpoint before moving on.
1. Shuffle card pairs.
Not checkedExample pattern (not the full solution):
# Add logic for this step inside your update loop
if condition_for_step:
# update state here
pass2. Flip two cards per turn.
Not checkedExample pattern (not the full solution):
# Add logic for this step inside your update loop
if condition_for_step:
# update state here
pass3. Keep matches up, flip mismatches back.
Not checkedExample pattern (not the full solution):
# Add logic for this step inside your update loop
if condition_for_step:
# update state here
pass4. Restart with R.
Not checkedExample pattern (not the full solution):
if event.type == pygame.KEYDOWN and event.key == pygame.K_r:
# Reset key game state values
score = 0
game_over = False