Walls

Posted February 1, 2019 by miriam.brown@j…

One of my students is doing a side project and wants to know if you can set up walls in a terrain so that he can build our school and run simulations.

Comments

Submitted by sgibbs on Fri, 02/01/2019 - 20:17 · Permalink

It is pretty easy to make 2D walls just by having a turtle draw a colored line on the screen, and then telling turtles to turn around if they step on that color.  See the Cookbook on this site (be sure to look at the version for StarLogo Nova 2.0) for more instructions on how to have a turtle draw a line, and how to have turtles react to color.  Be sure the turtles are only moving forward one step at a time, or they will appear to jump over the wall.  It sounds like a good project!

Submitted by miriam.brown@j… on Mon, 02/04/2019 - 14:14 · Permalink

Thank you.  I will check out the cookbook.