language: Python (python 2.7.2)
date: 110 days 1 hour ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
def cords(x,y,xpos,ypos):
        xxpos = 1
        xypos = 1
        x = 0
        while xxpos != xpos and xypos != ypos:
                if xxpos == 3:  
                        xxpos = 1
                        xypos += 1
                xxpos += 1
                x += 1
        return x
print cords(3,3,2,2)