Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. if (count traders) != 9
  2. [
  3. let missing 9 - (count traders)
  4. foreach n-values missing
  5. [
  6. create-traders 1
  7. [
  8. set shape "house"
  9. setxy random-pxcor random-pycor
  10.  
  11. set color red
  12. ;;give each trader some kinds of products to sell
  13. set stock n-of n-items-stocked fruit-and-veg
  14. ]
  15. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement