It do be jumpin
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
breed [players player] breed [wumps wump] players-own[rise step nothis nothat] patches-own [solid notthis notthat bep] wumps-own [place] to setup clear-all ask patches [set pcolor 73] create-players 1 ask players [setxy 20 60 set color red set heading 0] create-wumps 1 ask wumps [setxy 30 - (random 5) 6 - (random 5) set color white set heading 0] ask wumps [set pcolor 32] ask patches [if (pycor < -14) [set solid 1]] ask patches [if (pycor < -14) [set pcolor 1]] ask patches [if (pxcor > 7) and (pxcor < 10) and (pycor < 4) [set notthat 1]] ask patches [if (pxcor > 14) and (pxcor < 17) [set notthat 1]] ask patches [if (pxcor > -5) and (pxcor < -2) and (pycor < -3) [set notthat 1]] ask patches [if (pxcor > -12) and (pxcor < -9) and (pycor < -8) [set notthat 1]] ask patches [if (pxcor > -2) and (pxcor < 1) and (pycor < -3) [set notthis 1]] ask patches [if (pxcor > 10) and (pxcor < 13) and (pycor < 4) [set notthis 1]] ask patches [if (pxcor > -17) and (pxcor < -14) [set notthis 1]] ask patches [if (pxcor > -9) and (pxcor < -6) and (pycor < -8) [set notthis 1]] ask patches [if (pxcor > -5) and (pxcor < 1) and (pycor = -3) [set solid 1]] ask patches [if (pxcor > 7) and (pxcor < 13) and (pycor = 4) [set solid 1]] ask patches [if (pxcor > -12) and (pxcor < -6) and (pycor = -8) [set solid 1]] ask patches [if (pxcor > -5) and (pxcor < 1) and (pycor = -3) [set pcolor 80]] ask patches [if (pxcor > 7) and (pxcor < 13) and (pycor = 4) [set pcolor 80]] ask patches [if (pxcor > -12) and (pxcor < -6) and (pycor = -8) [set pcolor 80]] ask patches [if (pxcor > -5) and (pxcor < 1) and (pycor < -3) [set pcolor 82]] ask patches [if (pxcor > 7) and (pxcor < 13) and (pycor < 4) [set pcolor 81]] ask patches [if (pxcor > -12) and (pxcor < -6) and (pycor < -8) [set pcolor 72]] reset-ticks end to yeet ask players [if (step = 1) [set rise 1]] end to this ask players [if (nothis = 0) [set xcor xcor - 1]] end to that ask players [if (nothat = 0) [set xcor xcor + 1]] end to go ask players [if (rise < 20) and (rise != 0) [set rise rise + 1]] ask players [if (rise = 20) [set rise 0]] ask players [if (rise < 11) and (rise != 0) [set ycor ycor + 1]] ask players [if (step = 0) and (rise > 10) [set ycor ycor - 1]] ask players [if (step = 0) and (rise = 0) [set ycor ycor - 1]] ask players [if (notthat = 1) [set nothat 1]] ask players [if (notthat = 0) [set nothat 0]] ask players [if (solid = 1) [set step 1]] ask players [if (solid = 0) [set step 0]] ask players [if (notthis = 1) [set nothis 1]] ask players [if (notthis = 0) [set nothis 0]] tick end
There is only one version of this model, created over 4 years ago by Tiffany Roberson.
Attached files
No files
This model does not have any ancestors.
This model does not have any descendants.