now has color the next piece

master
kirbylife 2019-11-09 22:48:45 -06:00
parent bada0fc18e
commit 9817a04a1c
1 changed files with 3 additions and 1 deletions

View File

@ -82,9 +82,11 @@ class Afutc:
if i == 1:
row_str += f"{'' * (piece_width + 2)}"
if i >= 2 and (i - 2) < piece_height:
iprint("║ ║")
row = "".join(self.char if value else " "
for value in piece[i - 2])
row_str += f"{row}"
iprint(f" {row} ", color=next(filter(None, piece[i - 2])))
# row_str += f"║"
if i == (piece_height + 2):
row_str += f"{'' * (piece_width + 2)}"