debug
This commit is contained in:
parent
63f7b992a0
commit
c8deccdf82
2 changed files with 4 additions and 5 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Reference in a new issue