chatGTP and GEMINI code errors

(I edited your post to your post in a code block so it is easier to read as code. See tip #6 on this post)

A few things:

  • Replace all and with straight quotes ".
  • pxcor-of farthest-building should be [pxcor] of farthest-building

The end of the setup procedure needs to be inside of an ask patches like this:

After that, though you’ll likely get an error for that code, because adjacent-patch might be nobody. So, you’ll need to change it to:

That seems to solve all the errors.