title: Trying to get a turtle breed to avoid a specific colour of patch
body: <p>;num-Holes is actually a global variable. I'm trying to get them to avoid the black patches(holes in the floor)</p>
  
  <pre><code>if any? Patches in-Radius num-Holes with[pcolor = black] 
  [
  set heading (towards min-one-of num-Holes[distance myself]) + 180 - random 10 + random 10   
  ]
  </code></pre>
  
  <p>I'm trying to get my zombies to try and avoid black patches
  I know that netlogo won't accept the global 'num-Holes' so how can I get it to see and avoid the patches ?
  here is a wider scope of the code incase that makes my problem clearer.</p>
  
  <pre><code>     to go
     ask zombies
     [
     ;set heading (heading + 45 - (random 90))
      let closest-player min-one-of players[distance myself]
      set heading towards closest-player
      ;wait 1
      forward 1
          if pcolor = black [Death]
          if pcolor = black [Death]
  
      ;num-Holes is actually a global variable. I'm trying to get them to avoid the black patches(holes in the floor)
      if any? Patches in-Radius num-Holes with[pcolor = black] 
      [
      set heading (towards min-one-of zombies[distance myself]) + 180 - random 10 + random 10   
      ]   ]
  end
  </code></pre>
  
  <p>please and thank you :)</p>