StarLogoTNG "b2.0"
10700
English
`slcodeblocks`
191647This last if block tests to see if everyone in the world is healthy (green), i.e. the game is won.48269430765880gameWonglobal-var-booleanEveryone2606871345356699263650647657273653417653528656427656# Patient0'sglobal-var-numberEveryone191545827880# Sickglobal-var-numberEveryone1915948771345265606409606520609419609297557334505461508344508191167This ifelse block handles forward movement of the player agent. If both up arrow *and* spacebar are pressed, the player agent moves twice as fast as if only the up arrow is pressed.5132173171071373789283244864338276879444279341247284203864390206287170502173297173191324864797191395789827191470797877246502827249473246427797334430458433344433249398246356789352359249327236129192126137334496gameWonglobal-var-booleanEveryone2057719574If everyone in the world is healthy (green), then the game is won. And, if so, then no more movement is allowed... i.e. the game appears to stop running.504453259111371773Doctor10331137380286Because this breed uses the global (shared) procedure 'move', there are no other procedures here in this space.2042532678068299Because this breed uses the global (shared) procedure 'move', there are no other procedures here in this space.18826723795Everyone279550Everyone141553Everyone2755124489Global (shared) variables are placed here...13946520458Everyone36109This global 'move' procedure is used by all non-player agents.1756717078140946149129910120414091289101234128312951012641289207267179237251237187207259207104152239174gameWonglobal-var-booleanEveryone114155263516Reset score, clock, and global variables so the new game being setup has nothing leftover from last time played. Note: resetting the clock is necessary for the data being captured in the table to start at time=0.38948721316836129121137753122312116176012571212861223757121387125784712148875713391215128471343121542133986312156613431365gameWonglobal-var-booleanEveryone1215908632176021975152484197571405248449761320452314422251390256318125714012563481271328351Important that Patient0 be red, requiring at least 1 agent to be removed before game can be won.419305161108322321259289248193Remove People's model skin be "off" so you can see the color underneath.410961877612231229248217122712672482471229314250320220Green means 'healthy'... not infected yet by a Patient0 agent.41719716078251164208194In this model, all program-controlled agents follow a global (shared) 'move' procedure, i.e. they all move the same way.319152205115# Sickglobal-var-numberEveryone119597# Patient0'sglobal-var-numberEveryone11955457551This model captures data every 2 seconds (unless set differently in the graph view). The data can be saved as a .csv (comma separated value) file, which opens in Excel for further analysis and graphing. This 'table' block (renamed 'data' for this purpose) causes the data table to appear in the runtime space.4441440612839104moveprocedureEveryone124220845moveprocedureEveryone125166845updateDoctorprocedureDoctor126112845Collisions35546Doctor removes infecting Patient0's2255283193316160412511625631251206566Collisions30305Doctor cures infected People1932982583215035712212053931317132920542313138202054571329249460281426396429291429277396208360319363218363Collisions2866Patient0 infects People21656224301541181253846154148870209184846878209214874285187212151387154222154294154226121Peoplepeople/man-defaultPatient0animals/jarjar-defaultDoctorpeople/woman-default
`time`
speed 8
starlogo-time 3.2000000000000006
31487STUDENTS:
First, add the following features:
1. Infected people randomly get well after some time has passed.
2. Some infected people randomly become Patient0 breeds after some time has passed.
Then,
3. Play the game to win!
4. Export this data to Excel, graph it, analyze & discuss it, add comments to the Excel graph, and post to your blog.1615029531227109----EPIDEMIC INTERVENTION!---
Can you administer the cure and save the population?193025761145109354200horizontal
`terrains`
version 2
edit-terrain-index 1
terrain 0
dimensions 101 101
terrain_property-heights
H4sIAAAAAAAAAO3BMQEAAADCoPVPbQ0PoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAvg2F7tmukH0C
AAACfZA=
terrain_property-colors
H4sIAAAAAAAAAO3FMQ0AAAgDsIlAEP5VLXjgbJ8mZza2bdu2bdu2bdu2bdu2bdu2
bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2
bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2bdu2
bdu2bdu2/XQBVwz2Ssg+AQAAAT7I
terrain_property-cameras
H4sIAAAAAAAAAGN4oGrDkPN3H4NF3P6k8r6D1zf9db7/x9mlw3OvNVdKnH3qVKAc
Q4M9AxDo7bU2ZmBgOfQrI9yZgUHAkQEMIHJQuoGRocH4R43g4YuC0c5//vOjqUEA
AIAj9gh4AAAAAAAAeA==
end-terrain
terrain 1
dimensions 101 101
terrain_property-heights
H4sIAAAAAAAAAO3BMQEAAADCoPVPbQ0PoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAvg2F7tmukH0C
AAACfZA=
terrain_property-colors
H4sIAAAAAAAAAO3FIQEAAAgDsEfDU4roEAK5mSVnumLbtm3btm3btm3btm3btm3b
tm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3b
tm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3btm3b
tm3btm3bTy96r/AEyD4BAAABPsg=
terrain_property-cameras
H4sIAAAAAAAAAGN4oGrDkPN3H4NF3P6k8r6D1zf9db7/x9mlw3OvNVdKnH3qVKAc
Q4M9AxDo7bU2ZmBgOfQrI9yZgUHAkQEMIHJQuoGRocH4R43g4YuC0c5//vOjqUEA
AIAj9gh4AAAAAAAAeA==
end-terrain