CS108L Computer Science for All Lab 4: NetLogo Experiments in Random Walk and Wiggle Walk In this lab, you will be writing a program that lets you experiment with two “random “wiggle different types of turtle movement: the walk” and the walk”. These simple movements have useful behaviors and we will use them in more advanced models later in the semester. There are two NetLogo video lectures this week: NetLogo and the Random Walk NetLogo and the Wiggle Walk videos explain the two types of walks and show how to create and use the slider on the Graphical User Interface to control the value of variables. The screen capture shows the required layout of your program’s interface tab. The red circle is the boundary circle and must be drawn by code in the “setup” button. It must be centered at the origin and have a radius specified by the “radius” slider. You may do this any way you like. Below is an algorithm that you may choose to use (An algorithm is a set of step-by-step instructions for solving a problem). Algorithm for Drawing a Circle with a Specified Radius and Centered at the Origin 1) Create one turtle
CS108L Computer Science for All Lab 4: NetLogo Experiments in Random Walk and Wiggle Walk In this lab, you will be writing a program that lets you experiment with two different types of turtle movement: the “random walk” and the “wiggle walk”. These simple movements have useful behaviors and we will use them in more advanced models later in the semester. There are two NetLogo video lectures this week: NetLogo and the Random Walk NetLogo and the Wiggle Walk videos explain the two types of walks and show how to create and use the slider on the Graphical User Interface to control the value of variables. The screen capture shows the required layout of your program’s interface tab. The red circle is the boundary circle and must be drawn by code in the “setup” button. It must be centered at the origin and have a radius specified by the “radius” slider. You may do this any way you like. Below is an algorithm that you may choose to use (An algorithm is a set of step-by-step instructions for solving a problem). Algorithm for Drawing a Circle with a Specified Radius and Centered at the Origin 1) Create one turtle
CS108L_Week_4_Lab_RandomWalk.docx