This commit is contained in:
Rudis Muiznieks 2022-04-30 17:26:14 -05:00
parent 63f7b992a0
commit c8deccdf82
Signed by: rudism
GPG key ID: CABF2F86EF7884F9
2 changed files with 4 additions and 5 deletions

View file

@ -167,11 +167,11 @@ class Draw:
self._graphics.text("You move:", 12, 2, 1)
if src != None and dst == None:
self._graphics.text("<" + src.upper() + "> - __", 12, 3, 1)
#self._cursor_clear([src], player_color)
self._cursor_clear([src], player_color)
self._cursor(src, player_color)
elif src != None and dst != None:
self._graphics.text(src.upper() + " - <" + dst.upper() + ">", 12, 3, 1)
#self._cursor_clear([src, dst], player_color)
self._cursor_clear([src, dst], player_color)
self._cursor(src, player_color)
self._cursor(dst, player_color)
#else:

View file

@ -118,9 +118,8 @@ class ChessGame:
# user picks source piece
elif self._state == GameState.CHOOSE_SRC:
srces = self._get_sources()
if len(srces) > 0:
src = srces[self._src_idx]
if len(self._get_sources()) > 0:
src = self._get_sources()[self._src_idx]
self._draw.draw_select(self._board, self._move, self._player_color, src)
key = self._cinput.get_one_shot(0.1)
else: