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 279 times • Downloaded 38 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.)


WHAT IS IT?

This is a module template for new users to mess up with some basic features of turtles and patches in either stand-only NetLogo on a computer/laptop or on NetLogo Web.

HOW TO USE IT

  1. Modelers can change the basic features of turtle(s), including the size, color, shape, position, as well as trace its/their movement. The X coordinates of this simulation window in this module go from -24 to 24, so do the Y coordinates. Modelers may define the turtle positions within the range.

  2. Modelers can change the patch color and add in patch-own variables.

  3. Some suggestions can be found about what

RELATED MODELS

Other IModel models.

CREDITS AND REFERENCES

Dr. Lin Xiang at the University of Kentucky develops this model for IModel project.

Contact: lin.xiang@uky.edu

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 5 years ago Add in clarifications in "info" Download this version
lin xiang over 5 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 5 years ago, by lin xiang Download

This model does not have any ancestors.

This model does not have any descendants.