CS 1025 01 - Week #2 (Jan 19-21)


Tuesday, January 19th


  1. Link to download and install NetLogo on your computer (PC or MAC). It is FREE!

  2. Netlogo Day #3 example: DAY3.nlogo - click to look at the code, right mouse button click to get popup menu to download and then run or modify the program.

Thursday, January 21st


  1. Monty Hall simulation exercise. MONTY HALL game is due today anytime.

    *** Monty Hall assignment is due anytime on Thursday, January 21st. ***

  2. Look at the Forest Fire model in the Earth Science portion of the NetLogo Models Library. Read about it first, then click RUN FIRE IN YOUR BROWSER to try it out.

  3. Check out this NetLogo example of airplanes flying and fish swimming.
    1.  How do you create a circle in NetLogo?
    
        pd                pen down
        repeat 36
        [
           fd 0.05        forward 1/20th of a unit or turtle step  
           rt 10          turn right 10 degrees
        ]
    
        The 36 sided polygon looks like a circle, but its just 
                   a polygon (square, pentagon, octagon) with lots
                   and lots of sides.
     
    2.  We also covered ifelse and remainder and who numbers of turtles.
    
        There are EVEN and ODD numbered turtles.  
    
        See the airplanes and fish example above and look at the example
        and the NetLogo code on that web page for different things
        happening to the turtles that are EVEN or are ODD numbered.
    
        SET SHAPE and SET COLOR and SET SIZE of turtles.
    

  4. Octagon.nlogo - exercise and LOGO practice done in class. Right mouse button click if you want to download it to your computer. Just left mouse button click to look at the code.

  5. Example of the Scratch graphics environment. From the movie Ghostbusters II.

  6. Scratch.MIT.edu online SCRATCH program at MIT.