bendns' repos
/
chess
online multiplayer chess game (note server currently down)
main
2
Branches
0
Tags
Code
Clone
HTTPS
SSH
Open with VS Code
Diffstat
(limited to 'Utils.gd')
-rw-r--r--
Utils.gd
4
1 files changed, 4 insertions, 0 deletions
diff --git a/Utils.gd b/Utils.gd
index 94be0bb..658e322 100644
--- a/
Utils.gd
+++ b/
Utils.gd
@@ -25,6 +25,10 @@ func add_move(move) -> void:
emit_signal("newmove", move)
+func flip_int(i: int) -> int:
+ return int(abs(7 - i))
+
+
func reset_vars() -> void:
turn_moves.resize(0)
turns_moves.resize(0)