day1/exercise/bishop.py
author Puneeth Chaganti <punchagan@fossee.in>
Sun, 10 Jan 2010 22:36:09 +0530
changeset 352 b44d7bcc6609
parent 64 333092b68926
permissions -rw-r--r--
Added a few quiz questions; Minor edits.

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