title: How do you mouseclick to kill a turtle in Netlogo?
body: <p>im trying to make a whack a mole game for netlogo
  any help would be appreciated
  here is my full length code</p>
  
  <pre><code>globals [
    game-over?
  </code></pre>
  
  <p>]</p>
  
  <pre><code>To setup
   ca
   set game-over? false
   ask patches [set pcolor green]
  end
  
  To play
   if game-over? [
    ask turtles [die]
    ask patch 0 4 [set plabel "GAME OVER"]
   ] 
  set-default-shape turtles "ant 2"
  crt 1
  ask turtle 0 [
  set size 7
  set color brown
  set xcor random 33 - 16
  set ycor random 33 - 16]
  if mouse-down? [
   ask turtles with [round xcor = round mouse-xcor and round ycor = round mouse-ycor] [
   die]
  ]
  
  end  
  </code></pre>