online multiplayer chess game (note server currently down)
Diffstat (limited to 'pieces/Knight.gd')
-rw-r--r--pieces/Knight.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/pieces/Knight.gd b/pieces/Knight.gd
index 156a58d..2efe40d 100644
--- a/pieces/Knight.gd
+++ b/pieces/Knight.gd
@@ -3,7 +3,7 @@ class_name Knight, "res://assets/pieces/california/wN.png"
func get_moves():
- var moves = [
+ var moves := [
pos_around(Vector2(-2, -1)),
pos_around(Vector2(-2, 1)),
pos_around(Vector2(2, -1)),
@@ -13,7 +13,7 @@ func get_moves():
pos_around(Vector2(-1, 2)),
pos_around(Vector2(1, 2))
]
- var final = []
+ var final := []
for i in moves:
if is_on_board(i):
if no_enemys and at_pos(i):