Това е кучешка общност, в която живеят различни видове кучета. Всяка зелена решетка представлява детската площадка на кучето, а шестте къщи на спрайтовете са техните места за срещи. Всеки път, когато мишката лети над зелената мрежа, ще се появи куче. Ако имате късмет, ще намерите две еднакви кучета и те са може би най-добрите партньори, за да отидете в къща за запознанства :)

def setup():
    size(1220,740)
    noStroke() 
    background(255)
    global smallGrid, bigGrid, gap, dogImages, Dimg, Pimg, clickX, clickY
    smallGrid = 100
    bigGrid = 220
    gap = 20
    dogImages = []
for i in xrange(0, 36):
        filename = "/Users/joree/Desktop/dog/" + str(i + 1) + ".jpg"
        Dimg = loadImage(filename)
        dogImages.append(Dimg)
    Pimg = loadImage("/Users/joree/Desktop/parks/house.png")
def draw():    
    #draw the dogs
    i = 0
    for bundle in xrange(0,3):
        for row in xrange(0,6):
            for column in xrange(0,2):
                x = 20+480*bundle+column*(smallGrid+gap)
                y = 20+row*(smallGrid+gap)
                Dimg = dogImages[i]
                image(Dimg,x,y,smallGrid,smallGrid)
                mouseIsOverDog = (x < mouseX and mouseX < x + smallGrid) and(y < mouseY and mouseY < y + smallGrid)
                fill(146,246,97)
                rect(20+480*bundle+column*(smallGrid+gap), 
                     20+row*(smallGrid+gap), smallGrid, smallGrid)
                if mouseIsOverDog:
                    noFill()
                    image(Dimg,x,y,smallGrid,smallGrid)
                i = i + 1
  #draw the parks
         column = 0
        while column < 2:
            row = 0
            while row < 3:
                x = 3*gap+2*smallGrid+column*(bigGrid+3*gap+2*smallGrid)
                y = gap+row*(bigGrid+gap)
                image(Pimg,x,y,bigGrid,bigGrid)
                row = row + 1
            column = column + 1
            clickY = mouseY()

справка

Снимките на кучетата са от https://www.petfinder.com/dog-breeds?see-all=1