server for my chess game
Diffstat (limited to 'src/game.js')
-rw-r--r--src/game.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game.js b/src/game.js
index d8cb859..197880f 100644
--- a/src/game.js
+++ b/src/game.js
@@ -53,6 +53,7 @@ export class Game {
add_client(ws, data, is_white = this.clients.w.empty) {
this.clients.add(ws, data.name, data.id, data.country, is_white);
+ return is_white ? 0 : 1;
}
clean_clients(set_is_alive = true) {