summaryrefslogtreecommitdiff
path: root/tui
diff options
context:
space:
mode:
Diffstat (limited to 'tui')
-rw-r--r--tui/kbd.py2
-rw-r--r--tui/static.py8
-rw-r--r--tui/tui.py2
3 files changed, 6 insertions, 6 deletions
diff --git a/tui/kbd.py b/tui/kbd.py
index b6d2363..81840ae 100644
--- a/tui/kbd.py
+++ b/tui/kbd.py
@@ -57,7 +57,7 @@ class Kbd():
match action:
case Action.QUIT | Action.HINT:
return (action, x, y)
- case Action.OPEN | Action.FLAG | Action.BOMB | Action.SAFE:
+ case Action.OPEN | Action.FLAG | Action.MINE | Action.SAFE:
return (action, x, y)
case Action.UP:
y = y-1 if y > 0 else 0
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)] )
diff --git a/tui/tui.py b/tui/tui.py
index 4409134..d32af71 100644
--- a/tui/tui.py
+++ b/tui/tui.py
@@ -66,7 +66,7 @@ class Tui():
match action:
case Action.QUIT:
return (action, x, y)
- case Action.OPEN | Action.FLAG | Action.BOMB | Action.SAFE:
+ case Action.OPEN | Action.FLAG | Action.MINE | Action.SAFE:
if matrix[x][y] >= 10:
return (action, x, y)
case Action.HINT: