Update terminis.py
This commit is contained in:
parent
9298f084f7
commit
06839d4ee3
@ -696,10 +696,10 @@ class Game:
|
|||||||
for y, word in enumerate((("GA", "ME") ,("OV", "ER")), start=Matrix.NB_LINES//2):
|
for y, word in enumerate((("GA", "ME") ,("OV", "ER")), start=Matrix.NB_LINES//2):
|
||||||
for x, char in enumerate(word, start=Matrix.NB_COLS//2-1):
|
for x, char in enumerate(word, start=Matrix.NB_COLS//2-1):
|
||||||
color = self.matrix.cells[y][x]
|
color = self.matrix.cells[y][x]
|
||||||
if color is not None:
|
if color is None:
|
||||||
color |= curses.A_REVERSE
|
|
||||||
else:
|
|
||||||
color = curses.COLOR_BLACK
|
color = curses.COLOR_BLACK
|
||||||
|
else:
|
||||||
|
color |= curses.A_REVERSE
|
||||||
self.matrix.window.addstr(y, x*2+1, char, color)
|
self.matrix.window.addstr(y, x*2+1, char, color)
|
||||||
self.matrix.window.refresh()
|
self.matrix.window.refresh()
|
||||||
curses.beep()
|
curses.beep()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user