DEV
Tech for Everyone K-12 Education root@codedays:~$ holiday_code_days
halloween_code_day.sh

๐ŸŽƒ HALLOWEEN CODE DAY

challenge_of_the_day.md

Haunted House Algorithm

A robot has to walk through a haunted house and collect 3 pieces of candy without touching a ghost. Write the exact steps (an algorithm) it should follow.

  1. Draw a 4x4 grid. Put a start square, 3 candy squares and 2 ghost squares on it.
  2. Write a list of moves using only: forward, turn left, turn right, grab.
  3. Trade lists with a partner. Follow their steps EXACTLY, like a computer would.
  4. Did the robot get all 3 candies? If not, find the bug and fix it.

Level up: Grades 3-8: Can you shorten your list using a repeat? Example: repeat 3 [forward].

ls ./arcade
fact_of_the_day.sh

$ cat fact.txt