car race
Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)
WHAT IS IT?
(a general understanding of what the model is trying to show or explain)
HOW IT WORKS
(what rules the agents use to create the overall behavior of the model)
HOW TO USE IT
(how to use the model, including a description of each of the items in the Interface tab)
THINGS TO NOTICE
(suggested things for the user to notice while running the model)
THINGS TO TRY
(suggested things for the user to try to do (move sliders, switches, etc.) with the model)
EXTENDING THE MODEL
(suggested things to add or change in the Code tab to make the model more complicated, detailed, accurate, etc.)
NETLOGO FEATURES
(interesting or unusual features of NetLogo that the model uses, particularly in the Code tab; or where workarounds were needed for missing features)
RELATED MODELS
(models in the NetLogo Models Library and elsewhere which are of related interest)
CREDITS AND REFERENCES
(a reference to the model's URL on the web if it has one, as well as any other necessary credits, citations, and links)
Comments and Questions
;Ashley Choi ;IntroCS1 pd08 ;HW#51 - Be creative! (Hunger Games Style) ;2016-12-31 to setup ca ask patches [if pxcor = -15 [set pcolor green]; makes the start line if pxcor = 15 [set pcolor white]]; makes the finish line crt num_turtles ask turtles [set xcor -15]; makes your turtles to be on the start line ask turtles [set ycor 16 + who * 33 / num_turtles];Evenly spaces out your turtles so that no two turtles are on the same location ask turtles [set heading 90]; Makes your turtles face towards the finish line ask turtles [set shape "car top"] end to locomote every .1 [ fd random 10 / 10 ]; basically wiggle but in a straight path end to GO locomote if xcor >= 15;If the location of one turtle reaches or goes past the finish line [ask other turtles [die]]; then the turtles that did not make it to the finish line die if count turtles = 1; if there is one turtle left [stop]; stop the function ;do not know how to incorporate celebratory dance :( end
There is only one version of this model, created over 8 years ago by Ashley Choi.
Attached files
No files
This model does not have any ancestors.
This model does not have any descendants.