online multiplayer chess game (note server currently down)
| -rw-r--r-- | pieces/Piece.gd | 2 | ||||
| -rw-r--r-- | ui/Lobby.gd | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pieces/Piece.gd b/pieces/Piece.gd index f650b50..788df48 100644 --- a/pieces/Piece.gd +++ b/pieces/Piece.gd @@ -79,7 +79,7 @@ func moveto(position, real := true, take := false, override_moveto = false) -> v Utils.add_move(algebraic_take_notation(position)) real_position = position move(real_position) - print("%s moving from %s to %s" % [mininame + shortname, Utils.to_algebraic(global_position / Globals.grid.piece_size), Utils.to_algebraic(real_position)]) + print("%s moving from %s to %s" % [mininame + shortname + " white" if white else " black", Utils.to_algebraic(global_position / Globals.grid.piece_size), Utils.to_algebraic(real_position)]) SoundFx.play("Move") has_moved = true diff --git a/ui/Lobby.gd b/ui/Lobby.gd index e8bd0cd..565b41b 100644 --- a/ui/Lobby.gd +++ b/ui/Lobby.gd @@ -126,7 +126,7 @@ func add_turn() -> void: func _on_data(data: Dictionary) -> void: - print(data) + print(data, " recieved") Globals.fullmove = data["fullmove"] Globals.turn = data["turn"] Globals.halfmove = data["halfmove"] |