#Waldo Quiz 3/6/20

from graphics import *
from random import *
from Waldo import *

#Basics
w = GraphWin("WALDO MAKER 2000",600,600)
waldos = []

#Making two buttons
blue = Waldo(Point(230,300))
blue.setFill('blue')
blue.draw(w)
waldos.append(blue)

yellow = Waldo(Point(350,300))
yellow.setFill('yellow')
yellow.draw(w)
waldos.append(yellow)

#################################################

while True:
    location = w.getMouse()
#Blue button
    if(waldos[0].contains(location)):
        for i in range(0,randint(5,20)):
            red = Waldo(Point(randint(5,580),randint(5,580)))
            red.draw(w)
            waldos.append(red)