March 28, 2024
Moving global variables to the Interface
globals [ ]
chunk of code. I would also put an additional comment at the end stating it is on the Interface. For example:globals
[
; q ; (Interface Slider) Probability that ...
]
Moving global variables to the Interface
setup
procedure. If you choose to comment and not remove, I would also put the same comment from the globals
chunk in here as well. For example:to setup
[
; set q 0.2 ; (Interface Slider)
]
Initializing variables
Troubleshooting tips
Tips to reduce probability of getting stuck and increase probability of getting unstuck.
Check
button) and runtime (using Go
button) errors, and verify and validate code (i.e. is it doing what it is supposed to do?) For verification and validation:
Step
button that steps through the program one tick at a time.show
statements throughout your code.Troubleshooting tips
Tips to reduce probability of getting stuck and increase probability of getting unstuck.
Intro to Quantitative Biology, Spring 2024