fix: send random_move and not column_parse

This commit is contained in:
2025-11-19 16:09:39 -05:00
Unverified
parent 71b422b898
commit 93bb193718
4 changed files with 42 additions and 2 deletions

2
.gitignore vendored
View File

@@ -26,3 +26,5 @@ target
/target /target
.env .env
node_modules/

33
package-lock.json generated Normal file
View File

@@ -0,0 +1,33 @@
{
"name": "connect4-moderator-server",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"dependencies": {
"ws": "^8.18.3"
}
},
"node_modules/ws": {
"version": "8.18.3",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz",
"integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==",
"license": "MIT",
"engines": {
"node": ">=10.0.0"
},
"peerDependencies": {
"bufferutil": "^4.0.1",
"utf-8-validate": ">=5.0.2"
},
"peerDependenciesMeta": {
"bufferutil": {
"optional": true
},
"utf-8-validate": {
"optional": true
}
}
}
}
}

5
package.json Normal file
View File

@@ -0,0 +1,5 @@
{
"dependencies": {
"ws": "^8.18.3"
}
}

View File

@@ -367,7 +367,7 @@ async fn handle_connection(
broadcast_message( broadcast_message(
&current_match.viewers, &current_match.viewers,
&observers, &observers,
&format!("GAME:MOVE:{}:{}", "demo", column_parse.clone()?), &format!("GAME:MOVE:{}:{}", "demo", random_move),
).await; ).await;
} }
} }