IModel-template-1

IModel-template-1 preview image

1 collaborator

Screen_shot_2018-02-02_at_12.53.50_pm lin xiang (Author)

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by the author
Model was written in NetLogo 6.1.0 • Viewed 135 times • Downloaded 26 times • Run 0 times
Download the 'IModel-template-1' 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

turtles-own [  ]
patches-own [  ]
globals [  ]

to setup
 ca

 create-turtles 1
  [set color 95         ;see what happen if you change the number after "color"
   set size 3           ;see what happen if you change the number after "size"
   set shape "turtle"   ;see what happen if you change the number after "shape".
                        ;Note you must have the shape name in the quotation mark,
                        ;Some shape options in NetLogo include:
                           ; airplane, arrow, box, bug, butterfly, car, circle, circle 2,
                           ; cow, cylinder, dot, face happy, face neutral, face sad,
                           ; fish,flag, flower, house, leaf, line, line half, pentagon,
                           ; person, plant, sheep, square, square 2, star, target, tree,
                           ; triangle, triangle 2, truck, turtle, wheel, x

  ]

 ask patches [set pcolor 102]    ;see what happen if you change the number after "pcolor"

 reset-ticks
end 

to go
  move
  tick
end 

to move
  ask turtles [
    right 10         ;see what happen if you change the number after "right"
    forward 2        ;see what happen if you change the number after "forward"
  ]
end 

to draw
  ask turtles [ifelse pen-mode = "up" [pen-down ][pen-up]]
end 

to erase-trace
  clear-drawing
end 

There are 2 versions of this model.

Uploaded by When Description Download
lin xiang over 4 years ago Add in clarifications in "info" Download this version
lin xiang over 4 years ago Initial upload Download this version

Attached files

File Type Description Last updated
IModel-template-1.png preview Preview for 'IModel-template-1' over 4 years ago, by lin xiang Download

This model does not have any ancestors.

This model does not have any descendants.