CSCI 190 NetLogo Sample Code

Sample Code From Class

  1. BugOnDunes.nlogo example from 9/28
  2. DEMO12-cat-mouse-game.nlogo example from 10/5
  3. DEMO13-rat-reporters.nlogo example from 10/10
  4. hiker.nlogo example from 10/24 & 10/26 . (This is also a sample solution to the midterm exam question 3 including the extra credit part.)
  5. Code Base for Programming Assignment 6:buyers-sellers.nlogo model presented on 10/26 (with slight modifications). Use this to design and test your own breeds for Assignment 6.
  6. Week6b-rev1.nlogo, the example from week with mice living in walls, trying to reproduce and eat, and avoid the cats who want to eat them.
  7. newmaze-v4.nlogo example from Week 11 (after Thanksgiving), shows not only the creation of a maze but the coding of different strategies for solving it. This is the final version that will be used for a race to determine the ordering of student final project presentations.

Sample Solutions to Homeworks

  1. HW3-SampleSolution.nlogo
  2. HW4-SampleSolution.nlogo
  3. HW5-SampleSolution.nlogo