fixed interface

master
kirbylife 2019-11-07 20:20:45 -06:00
parent 2e14bf377d
commit 4447e713a6
1 changed files with 5 additions and 3 deletions

View File

@ -52,7 +52,9 @@ class Afutc:
height_start = (height // 2) - (WIDTH // 2) height_start = (height // 2) - (WIDTH // 2)
try: try:
print = lambda x: self.print((" " * height_start) + x + "\n") print = lambda x: self.print((" " * height_start) + x + "\n")
row = str(self.score).center(self.board.shape[1], "") row = str(self.score)
row = f"{row}"
row = row.center(self.board.shape[1], "")
print("ANOTHER F TETRIS CLONE") print("ANOTHER F TETRIS CLONE")
print(f"{row}") print(f"{row}")
for i, row in enumerate(self.board + self.current_move): for i, row in enumerate(self.board + self.current_move):
@ -66,8 +68,8 @@ class Afutc:
row_str += " " row_str += " "
print(f"{row_str}") print(f"{row_str}")
row = "" * (self.board.shape[1]) row = "" * (self.board.shape[1])
# print(f"╚{row}╝") print(f"{row}")
print(str(self.pivot) + "\t" + self.debug) # print(str(self.pivot) + "\t" + self.debug)
except CursesException: except CursesException:
self.pause() self.pause()