day1/exercise/bishop.py
author shantanu <shantanu@fossee.in>
Tue, 08 Dec 2009 13:06:14 +0530
changeset 329 0a6ab1d81491
parent 64 333092b68926
permissions -rw-r--r--
Some more changes for day 2 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