final netlogo project

final netlogo project preview image

1 collaborator

Default-person aidan savona (Author)

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by everyone
Model was written in NetLogo 6.1.0 • Viewed 176 times • Downloaded 22 times • Run 0 times
Download the 'final netlogo project' 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?

(it is a solor system model modelling the sun with the 8 planets orbiting it. end-of-universe makes all the planets move towards the sun. Stars lets you make stars, which you can clear with kill stars. )

HOW IT WORKS

(the planets face the sun,turn 90 degrees, and go foward 0.1, then repeat that at each tick.)

HOW TO USE IT

(press the different buttons to change things about the model, setup will set up the sun and the planets, and go will start the planets orbits)

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

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

Click to Run Model

to setup

  ca
  set-default-shape turtles "circle"
  create-turtles 1
  ask turtles
  [setxy 0 0
  set size 10
  set color 45]

  create-turtles 8

  [setxy random-xcor random-ycor]
  ask turtles  with [who > 0 ] [
    set color 96
    face  turtle 0
    ]
  ask patches[ set pcolor 10 ]
  reset-ticks
end 

to go


  ask turtles  with [who > 0 ] [
    face turtle 0
    rt 90
    fd .1  ]

tick
end 

to kill-planets

  ask turtles  with [who > 0 ][
    die]

  tick
end 

to endofuniverse

  ask turtles with [who > 0 ] [face turtle 0
    fd .1
  ]

tick
end 

to clear
  ca
  reset-ticks
end 

to stars
  ask patches[ set pcolor black]
  ask n-of  15  patches  [ set pcolor white]

  tick
end 

to kill-stars

  ask patches [ set pcolor black ]

  tick
end 






























There is only one version of this model, created almost 6 years ago by aidan savona.

Attached files

File Type Description Last updated
final netlogo project.png preview Preview for 'final netlogo project' almost 6 years ago, by aidan savona Download

This model does not have any ancestors.

This model does not have any descendants.