debug
This commit is contained in:
parent
63f7b992a0
commit
c8deccdf82
|
@ -167,11 +167,11 @@ class Draw:
|
||||||
self._graphics.text("You move:", 12, 2, 1)
|
self._graphics.text("You move:", 12, 2, 1)
|
||||||
if src != None and dst == None:
|
if src != None and dst == None:
|
||||||
self._graphics.text("<" + src.upper() + "> - __", 12, 3, 1)
|
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)
|
self._cursor(src, player_color)
|
||||||
elif src != None and dst != None:
|
elif src != None and dst != None:
|
||||||
self._graphics.text(src.upper() + " - <" + dst.upper() + ">", 12, 3, 1)
|
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(src, player_color)
|
||||||
self._cursor(dst, player_color)
|
self._cursor(dst, player_color)
|
||||||
#else:
|
#else:
|
||||||
|
|
|
@ -118,9 +118,8 @@ class ChessGame:
|
||||||
|
|
||||||
# user picks source piece
|
# user picks source piece
|
||||||
elif self._state == GameState.CHOOSE_SRC:
|
elif self._state == GameState.CHOOSE_SRC:
|
||||||
srces = self._get_sources()
|
if len(self._get_sources()) > 0:
|
||||||
if len(srces) > 0:
|
src = self._get_sources()[self._src_idx]
|
||||||
src = srces[self._src_idx]
|
|
||||||
self._draw.draw_select(self._board, self._move, self._player_color, src)
|
self._draw.draw_select(self._board, self._move, self._player_color, src)
|
||||||
key = self._cinput.get_one_shot(0.1)
|
key = self._cinput.get_one_shot(0.1)
|
||||||
else:
|
else:
|
||||||
|
|
Reference in New Issue