to checkhit ; We use an IF statement to see if we hit the target. Note the ; use of AND to see if both guesses are correct before doing a checkhit. make "truth and :guessdistance = :distance :guessbearing = :bearing if and :guessdistance = :distance :guessbearing = :bearing ~ [print [Safe Landing!!!] stop] ; If we didn't hit it, we ask for another input, then we ; increment our guess number so we can track the number of guesses. make "guessdialog [Missed!! Enter distance and bearing] make "guessnumber :guessnumber + 1 ; We now must move the turtle back to it's original starting location back :guessdistance left :guessbearing ; and we play the game again playgame end