day1/exercise/bishop.py
author Puneeth Chaganti <punchagan@fossee.in>
Sun, 10 Jan 2010 16:57:51 +0530
changeset 344 19754ed6050f
parent 64 333092b68926
permissions -rw-r--r--
Moved all day2 quiz questions to end of day2-sessions.

r, c = 5, 4
for i in range(1, 9):
    for j in range(1, 9):
        a = r - i
        b = c - j
        if a and b and a == b or a == -b:
            print i, j