diff options
author | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-30 14:27:28 +0200 |
---|---|---|
committer | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-30 14:27:28 +0200 |
commit | de4daa463d75403144ac63d3cd94aebf74fa0cb2 (patch) | |
tree | 943cfb0a53c98a0c2573fb748af29973e3642a39 /tui/static.py | |
parent | 6d62f8c23e8ab76a2034dde08cff8302c9989fdc (diff) |
Renaming bombs to mines.
Diffstat (limited to 'tui/static.py')
-rw-r--r-- | tui/static.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tui/static.py b/tui/static.py index 2b3693a..fba5525 100644 --- a/tui/static.py +++ b/tui/static.py @@ -19,7 +19,7 @@ class Action(Enum): BEGIN = 11 END = 12 NOOP = 13 # ei mitään - tarvitaan, ettei mätsää ansikoodeja esciin - BOMB = 14 # merkkaa pommi + MINE = 14 # merkkaa pommi SAFE = 15 # merkkaa turvallinen # ActionKeys - Ohjelma vertaa syötteen alkua näihin ja palauttaa ekan @@ -31,7 +31,7 @@ ActionKeys = { "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.BOMB, "x": Action.BOMB, "o": Action.SAFE, + "p": Action.MINE, "x": Action.MINE, "o": Action.SAFE, "l": Action.QUIT, "?": Action.HINT, "b": Action.HINT } @@ -67,8 +67,8 @@ TileTypes = { Tile.SIX: TileType( "[6]", [(0x9,0), (0x9,0), (0x9,0)] ), Tile.SEVEN: TileType( "[7]", [(0x9,0), (0x9,0), (0x9,0)] ), Tile.EIGHT: TileType( "[8]", [(0x9,0), (0x9,0), (0x9,0)] ), - Tile.BOMB: TileType( "[@]", [(0xF,1), (0xF,1), (0xF,1)] ), - Tile.FLAG_BOMB: TileType( "[×]", [(0x8,7), (0x1,7), (0x8,7)] ), + Tile.MINE: TileType( "[@]", [(0xF,1), (0xF,1), (0xF,1)] ), + Tile.FLAG_MINE: TileType( "[×]", [(0x8,7), (0x1,7), (0x8,7)] ), Tile.FLAG_FREE: TileType( "[•]", [(0x8,7), (0x2,7), (0x8,7)] ), Tile.UNOPENED: TileType( "[#]", [(0x8,7), (0x8,7), (0x8,7)] ), Tile.FLAG_UNKNOWN: TileType( "[?]", [(0x8,7), (0x0,7), (0x8,7)] ) |