summaryrefslogtreecommitdiff
path: root/tui/tui.py
diff options
context:
space:
mode:
Diffstat (limited to 'tui/tui.py')
-rw-r--r--tui/tui.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tui/tui.py b/tui/tui.py
index 8521227..65e482d 100644
--- a/tui/tui.py
+++ b/tui/tui.py
@@ -110,11 +110,11 @@ class Tui():
self.read_action()
- def game_begin(self, size):
+ def game_begin(self, width, height):
""" ruudun alustus ja lähtökoordinaatien määritys """
- print(end="\n"*(size+1))
+ print(end="\n"*(height+1))
Ansi.cup(1)
- return size//2, size//2
+ return width//2, height//2
def game_over(self, matrix, x, y):