(x, y)
| 61 | return down(x-1, y+1) |
| 62 | |
| 63 | def down(x, y): |
| 64 | |
| 65 | while 1: |
| 66 | if not current_value: |
| 67 | return maps |
| 68 | xy = makeXY(x, y) |
| 69 | if (y > -1 and x > -1) and (y < n and x < n): |
| 70 | if maps[y][x] == 0: |
| 71 | maps[y][x] = current_value.pop() |
| 72 | y, x = xy[1][1], xy[1][0] |
| 73 | |
| 74 | else: |
| 75 | # left |
| 76 | return left(x-1, y-1) |
| 77 | else: |
| 78 | # left |
| 79 | return left(x-1, y-1) |
| 80 | def left(x, y): |
| 81 | |
| 82 | while 1: |