diff options
author | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-31 13:52:45 +0200 |
---|---|---|
committer | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-31 13:52:45 +0200 |
commit | 7262e21e996ab1589384b43c90d9202e29a69f36 (patch) | |
tree | 37e6773c36ae6a2d410d3c3e03d97634c6df7cc1 /tui/static.py | |
parent | de4daa463d75403144ac63d3cd94aebf74fa0cb2 (diff) |
Reforming command line parameters & keyboard help.
Diffstat (limited to 'tui/static.py')
-rw-r--r-- | tui/static.py | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/tui/static.py b/tui/static.py index fba5525..60442c0 100644 --- a/tui/static.py +++ b/tui/static.py @@ -30,24 +30,25 @@ ActionKeys = { "\033[": Action.NOOP, "\033": Action.QUIT, "t": Action.SAFE, "w": Action.UP, "a": Action.LEFT, "s": Action.DOWN, "d": Action.RIGHT, " ": Action.OPEN, "\n": Action.OPEN, - "f": Action.FLAG, "m": Action.FLAG, "q": Action.QUIT, - "p": Action.MINE, "x": Action.MINE, "o": Action.SAFE, - "l": Action.QUIT, "?": Action.HINT, "b": Action.HINT + "l": Action.QUIT, "?": Action.HINT, "b": Action.HINT, + "f": Action.FLAG, "q": Action.QUIT, "m": Action.MINE, + "\t": Action.FLAG, "9": Action.MINE, "0": Action.SAFE } -KEY_DESCRIPTIONS = """ -Liikkuminen: - YLÖS,ALAS,VASEN,OIKEA,PGDN,PGUP,HOME,END,w,a,s,d -Merkitseminen: - m - merkitse - p,x - pommi - t,o - turvallinen -Avaaminen: - ENTER, SPACE -Vinkki: - ?, b - pyydä botilta vihje -Lopetus: - l,q,ESC +KEY_DESCRIPTIONS = """Näppäinasettelu: + + YLÖS, ALAS, VASEN, OIKEA, PGDN, PGUP, HOME, END, w, a, s, d + Kursorin liikuttaminen pelilaudalla + + ENTER, SPACE Avaa laatta + + f, TAB Vaihda laatan merkintää + m, 9 Merkitse miinaksi + t, 0 Merkitse turvalliseksi + + ?, b Vihje tekoälyltä + + l, q, ESC Pelin lopetus """ @dataclass |