M U S H R O O M S



  1. Mushroom Hunting and NetLOGO Tuesday and Thursday Example program.
    April 14th and 16th and 21st, 2015

    Play with the NetLOGO example program to understand the MUSHROOM assignment and model.
    Note: Right mouse button click and download the model - then run it.

  2. NetLOGO Mushrooms model background explanation and NetLOGO code..

    Questions on the MUSHROOMS model assignment.

  3. Help on the TURNING with the MUSHROOM Hunting NetLOGO model.

  4. Mushroom season: Turn! Turn! Turn! with the Byrds (Not Hitchcock's The Birds).

  5. What does the RANDOM expression do in NetLOGO/
    random             <------ From NetLOGO Help menu > Dictionary command
                               random is in the Math Category.
                               Categories: Math
    random number
    
    If number is positive, reports a random integer greater than or equal to 0, 
                                                 but strictly less than number.
    
    show random 3
    ;; prints 0, 1,  or 2           0 <= random 3 < 3 means 0, 1 or 2 is result.
    
    show random 6                   0, 1, 2, 3, 4, or 5 is the output or result.
    
    show (random 6) + 1             1, 2, 3, 4, 5, or 6 is the result. 
    
    show random 21                 0,  1,  2, 3, ..., 18, 19, or 20 is the result.
    
    show (random 21) - 10        -10, -9, -8, ..., -1, 0, 1, 2, ..., 9, or 10
                                                                   is the result.
    
  6. What color is a patch that represents a MUSHROOM? When do the mushrooms get created? Which procedure, SETUP or GO?

  7. What color does a patch change to if the mushroom hunter (our NetLOGO turtle) finds it and eats it?
    What is the statement that causes the turtle to detect it has found a mushroom?
      
    What is the statement that resets the time when the turtle has just found a mushroom?
    
  8. What does the n-of do? Note: There are two different "ask n-of" statements in the code.
    n-of       <---------- From the Help menu > Dictionary
                           Easiest to find by searching the letter "N" group of Netlogo commands.
    n-of size agentset
    
    From an agentset, reports an agentset of size size 
                      randomly chosen from the input set, with no repeats.
    
                      Turtles are AGENTS.  cro 16 creates an AGENTSET of
                                               16 turtles, i.e. a SET of 16 turtle AGENTS.
                       The patches are considered AGENTS here too,
                                   although they do not move.  They can change!
    
    ask n-of 50 patches [ set pcolor green ]
    ;; 50 randomly chosen patches turn green
    

  9. Mushroom Hunting: M U S H R O O M S - WEEK #13 - Spring 2015 HELPFUL Example.