now has color the next piece
parent
bada0fc18e
commit
9817a04a1c
|
@ -82,9 +82,11 @@ class Afutc:
|
||||||
if i == 1:
|
if i == 1:
|
||||||
row_str += f" ╔{'═' * (piece_width + 2)}╗"
|
row_str += f" ╔{'═' * (piece_width + 2)}╗"
|
||||||
if i >= 2 and (i - 2) < piece_height:
|
if i >= 2 and (i - 2) < piece_height:
|
||||||
|
iprint("║ ║")
|
||||||
row = "".join(self.char if value else " "
|
row = "".join(self.char if value else " "
|
||||||
for value in piece[i - 2])
|
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):
|
if i == (piece_height + 2):
|
||||||
row_str += f" ╚{'═' * (piece_width + 2)}╝"
|
row_str += f" ╚{'═' * (piece_width + 2)}╝"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue