""" Some tests of the Snail class. DO NOT PUT YOUR SOLUTION TO THE LAB IN THIS FILE. """ from graphics import * from snail import * from time import * def main(): window = GraphWin("sample snails", 500, 500) snail1 = Snail(Point(250, 250), 50, "rich") snail1.setFill("blue") snail1.draw(window) #click to continue window.getMouse() for i in range(50): snail1.move(1, 1) sleep(0.01) snail2 = Snail(Point(150, 250), 50, "jean") snail2.setFill("green") snail2.draw(window) #click to continue window.getMouse() # get the circle representing the pupil of the eye in the # front of the snail (the lower down one further to the right) pupil1 = snail1.front_eye() print "The center of %s's eye was located at:" % (snail1.getName()) print "(%d, %d)" % (pupil1.getCenter().getX(), pupil1.getCenter().getY()) pupil2 = snail2.front_eye() print "The center of %s's eye was located at:" % (snail2.getName()) print "(%d, %d)" % (pupil2.getCenter().getX(), pupil2.getCenter().getY()) main()