online multiplayer chess game (note server currently down)
Diffstat (limited to 'Grid.gd')
-rw-r--r--Grid.gd6
1 files changed, 3 insertions, 3 deletions
diff --git a/Grid.gd b/Grid.gd
index 6e93a5c..b03aebb 100644
--- a/Grid.gd
+++ b/Grid.gd
@@ -111,13 +111,13 @@ func _on_turn_over():
if !can_move():
if Globals.in_check:
var winner := "black" if Globals.turn else "white"
- status_label.text = "%s won the game by checkmate" % winner
+ status_label.text("%s won the game by checkmate" % winner)
win(winner)
else:
- status_label.text = "stalemate"
+ status_label.text("stalemate")
drawed()
elif threefoldrepetition():
- status_label.text = "draw by threefold repetition"
+ status_label.text("draw by threefold repetition")
drawed()