Convert (x, y) coordinates (like 0,0 or 1,4) to user-friendly coordinates (like A1 or B5).
(x, y)
| 316 | |
| 317 | |
| 318 | def xyToA1(x, y): |
| 319 | """Convert (x, y) coordinates (like 0,0 or 1,4) to user-friendly |
| 320 | coordinates (like A1 or B5).""" |
| 321 | return chr(x + 65) + str(y + 1) # The ASCII value of 'A' is 65. |
| 322 | |
| 323 | |
| 324 | def A1ToXy(space): |