![]() ![]() Then set specific, hardcoded patches to black, blue or red. Remove all the turtles (clear-all does both 1 and 2). Setup Button: Your program must have a setup button that when pressed must: 1. This is because after the turtle turns, there might be another block in its new forward direction. Note: the turtle should ONLY move when the patch ahead is green. If the patch ahead is green, there are two options available: if there is another turtle in that patch then the turtle makes a U-Turn otherwise, the turtle runs one step forward on the turf. If the patch ahead is red, then the turtle makes a 90° right turn. If the patch ahead is blue, then the turtle makes a 90° left turn. If the patch ahead is black then the turtle makes a U-Turn. 2) At each tick, every turtle looks ahead one patch in its current heading. The basic rules are: 1) Each turtle starts in the middle of a random patch. Min-pxcor = -16, max-pxcor = 16, min-pycor = -16, max-pycor = 16 The Bumper Turtles model created in this lab requires the use of Boolean logic and conditional control flow. [H: 15 points): There is at least one patch where two different turtle paths cross. Hint: add a black patch to cause the turtle to turn back around. ![]() : Whenever one of your turtles turns from its path to avoid another turtle, it later returns to its path. : There are at least a total of 10 black, red and/or blue patches that affect the path of the turtles. : The Go button moves turtles along a path that loops. 2) Every time the setup button is pressed, the turtles you create are always created in the same set of unique locations. Each turtle must have unique coordinates. ![]() See Coding Standards document for more information (in Module 1) : 1) Your Setup button creates at least 2 turtles. Grading Rubric (100 points total]: : Submit your Netlogo source code file: 1) Source code with the file name: Lab05_Bumper_ogo 2) Header (please refer to the previous lab specification) in your source code at the beginning of your program : The code in the code tab of your program is appropriately documented with "inline comments". 1 of 2ģ) Create a track that is colored white (see above image for example) 4) Create at least 2 turtles each with a specific location and heading so that someplace along the path or that will enter the path created in step (3). Set specified patches to black, blue, and red. Settings: Use the following settings for the interface: min-pxcor = -16, max-pxcor = 16, min-pycor = -16, max-pycor = 16 Setup Button: Setup button must do the following: 1) Clear the world. Umper The Bumper Turtles model created in this lab requires the use of Boolean logic and conditional control flow.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |