Work 20: 11/1

posted Nov 1, 2018, 11:13 AM by JonAlf Dyrland-Weaver   [ updated Nov 1, 2018, 12:17 PM ]
With your new table buddy, try to recreate the procedures in the following NetLogo program: http://homer.stuy.edu/~dw/netlogo/crazyTurtlesWeb.html

  1. Phase 1: TO BE DONE BEFORE ANY CODING!
    • Test the buttons out
      • pu, pd and clear (ca) are just buttons that call each of those regular commands, they are there for convenience.
      • 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
Comments