Cellular Automata models: NetLOGO LIFE model


  1. Agent based modeling and the GAME OF LIFE. Be able to derive what the GRID of agents would look like next given a certain set of cells that are occupied and unoccupied. You do NOT have to have the Game of Life rules memorized. They will be given to you on the test. The GRID would be a 5 by 5 grid or a 6 by 6 grid, so only 25 or 36 squares, aka patches in NetLogo.
  2. How was the above GREEN and WHITE patches 36 cell LIFE grid created using NetLogo? (You do NOT have to know this for the test).
  3. to randomColorPatches
       
       ask patches
          [
             ifelse random  100 < 30 
                 [ set pcolor green ]    ;  Note: you might be asked to show the output of a NetLogo procedure that 
                 [ set pcolor white ]    ;        included an ifelse, so be sure to understand how ifelse is used in this example!
          ]
    end
       
  4. With regard to the world of NetLogo, what is a TORUS setting for the grid of patches? Looking at some output, be able to describe whether the world was a TORUS, or wrapped just horizontally, or if it wrapped just vertically. Recall in class how a sheet of paper could demonstrate a grid world wrapping vertically OR wrapping horizontally, but its hard to show it doing both..
  5. In NetLogo, show what the output would look like for the following:
  6. What is the output you would see on the NetLogo grid after running the ExampleOne procedure?   
                                         (Draw a rough picture of about what it would look like). 
             
     TO ExampleOne
         ca
         cro 8
             
         fd 5
        
         pd 
         fd 5
       
         pu
         fd 2
         
         pd
         fd 2
        
         pu 
         fd 2
     END     
    
  7. Same question as above. Show the output of ExampleTwo procedure.
  8. Show what the screen or the NetLogo grid would probably look like AFTER the following procedure ExampleTwo finishes.
                                    (Note: there may be many possible drawings that get full credit for this
                                            question.   You will NOT be told this on the exam, but you are being
                                            told this for this study guide).  CRO versus CRT - VIP to know!
    TO ExampleTwo
        CA
        CRT 8
        
        PD
        FD 8   
    END