100-days-of-code/projects/Day 19
2021-08-17 21:16:04 -04:00
..
etch-a-sketch.py Made an epic showcase website and API! 2021-08-17 21:16:04 -04:00
README.md Made an epic showcase website and API! 2021-08-17 21:16:04 -04:00
turtle-race.py Made an epic showcase website and API! 2021-08-17 21:16:04 -04:00

Day 19 - Instances, State, and Higher Order Functions

  • Built an etch-a-sketch while understanding higher order functions
  • Simulated a turtle race with randomized steps using class instances

Etch-a-Sketch

Day_19_Etch_A_Sketch

This etch-a-sketch uses higher order functions to run when keys are pressed on the keyboard.

  • w - Move forwards
  • s - Move backwards
  • a - Turn left
  • d - Turn right
  • c - Reset etch-a-sketch

The Great Turtle Race

Day_19_The_Great_Turtle_Race

The Great Turtle Race uses multiple instances of the Turtle object from the turtle module that move by a random number of steps to the edge of the screen.