Courses‎ > ‎Intro to CS - Full Year‎ > ‎Fall‎ > ‎Dyrland-Weaver‎ > ‎Work‎ > ‎

Work 08: 11/6

posted Nov 6, 2019, 11:23 AM by JonAlf Dyrland-Weaver
With your new table buddy, try to recreate the procedures in the following NetLogo program:

    • Test the buttons out
      • pu, pd and clear (ca) are just buttons that call each of those regular commands, they are there for convenience.
      • You are given forever and regular buttons for each of the custom procedures. The procedures are designed to work with forever buttons, but running them one step at a time might help to understand what they do.
      • The forever buttons were designed to work alone, using 2 or more of them at the same time will lead more to confusion rather than illumination.
    • Using a Key To Success™, write down each button (aside from pd, pu and clear), and answer the following question:
      • What context is it in?
      • Is it a regular button or forever button?
      • Does the called procedure make use of a slider?
      • If it is a Turtle button:
        • Are the actions that all turtles do?
        • Are there actions that apply to certain turtles?
      • There is no button for it, but there is a wiggle procedure
        • How do you think it works?
        • What procedures use the wiggle procedure?
  2. Phase 2:
    1. Use the info you gathered in Phase 1 to write your own version of the program.
    2. Include your answers to the questions from phase 1 as comments at the top of your code.
      1. Like racket, ; is the NetLogo comment operator.
Submit this as crazy_turtles