MIHS Challenge 1 - solution

MIHS Challenge 1 - solution preview image

1 collaborator

Larry_bencivengo Larry Bencivengo (Author)



Tagged by Larry Bencivengo almost 7 years ago

Visible to everyone | Changeable by the author
Model was written in NetLogo 5.2.0 • Viewed 117 times • Downloaded 18 times • Run 0 times
Download the 'MIHS Challenge 1 - solution' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)

Comments and Questions

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

to setup            
  clear-all         ;; clears the world view of turtles and sets all values to zero
  create-turtles 10 ;; create 10 turtles at random locations, set their size to 2
  ask turtles [
    setxy random-xcor random-ycor
    set size 2
  reset-ticks       ;; reset the ticks to zero

to go
  ask turtles [
    fd .5           ;; forward 1 step
    rt random 10    ;; turn right
    lt random 10    ;; turn left
  tick              ;; add 1 to the ticks
end                  ;; because the go button is a "Forever" button, return to the top of this 
                    ;; procedure and do it again.

There are 2 versions of this model.

Uploaded by When Description Download
Larry Bencivengo almost 7 years ago One solution to Challenge 1 Download this version
Larry Bencivengo almost 7 years ago Initial upload Download this version

Attached files

File Type Description Last updated
MIHS Challenge 1 - solution.png preview Preview for 'MIHS Challenge 1 - solution' almost 7 years ago, by Larry Bencivengo Download

This model does not have any ancestors.

This model does not have any descendants.