diff options
| author | Mirek Kratochvil <exa.exa@gmail.com> | 2026-11-20 09:00:55 +0100 |
|---|---|---|
| committer | Mirek Kratochvil <exa.exa@gmail.com> | 2026-11-20 09:00:55 +0100 |
| commit | 967de16bef74d49d1da23c1264920811eff8eef5 (patch) | |
| tree | 91562c2913b6dc5dd295fde55e4a8a5d91589564 | |
| parent | 4afa29aed3d94c52526151219649dd775bbb3330 (diff) | |
| download | ls47-967de16bef74d49d1da23c1264920811eff8eef5.tar.gz ls47-967de16bef74d49d1da23c1264920811eff8eef5.tar.bz2 | |
fix the letters order to match the board with arrows
| -rwxr-xr-x | ls47.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -11,7 +11,9 @@ import random import sys letters = "_ABCDEFGHIJKLMNOPQRSTUVWXYZ.,:?!'()0123456789+-*/" -tiles = list(zip(letters, map(lambda x: (x // 7, x % 7), range(7 * 7)))) +tiles = list( + zip(letters, map(lambda x: ((7 - x // 7) % 7, (7 - x % 7) % 7), range(7 * 7))) +) padding_size_min = 5 padding_size_max = 15 |
