online multiplayer chess game (note server currently down)
Diffstat (limited to 'Utils.gd')
-rw-r--r--Utils.gd4
1 files changed, 4 insertions, 0 deletions
diff --git a/Utils.gd b/Utils.gd
index cfe5ec1..7cef222 100644
--- a/Utils.gd
+++ b/Utils.gd
@@ -17,6 +17,10 @@ static func is_pawn(inode) -> bool:
return inode is Pawn
+static func is_king(inode) -> bool:
+ return inode is King
+
+
func add_move(move) -> void:
if turn_moves.size() == 0:
turn_moves.append(str(Globals.fullmove) + ". " + move)