online multiplayer chess game (note server currently down)
Diffstat (limited to 'Utils.gd')
-rw-r--r--Utils.gd7
1 files changed, 1 insertions, 6 deletions
diff --git a/Utils.gd b/Utils.gd
index fd10f2a..67738ed 100644
--- a/Utils.gd
+++ b/Utils.gd
@@ -33,12 +33,7 @@ func spotispiece(piece_type: int, spot: Piece) -> bool:
static func str_bool(string: String) -> bool:
- string = string.to_lower()
- if string == "true":
- return true
- if string == "false":
- return false
- return false
+ return string.to_lower().strip_edges() in ["true", "1", "on", "yes", "y", ""]
func add_move(move: String) -> void: