9 Commits

Author SHA1 Message Date
Gaël Goinvic
ed9a91114a feat: add forbidden adjacent pairs 2024-11-23 16:00:20 +01:00
Gaël Goinvic
1ef286ec93 upgrade dependencies 2024-11-23 15:20:22 +01:00
gvcgael
6d92ccb908 new algorithm 2022-11-30 22:54:29 +01:00
gvcgael
487b6312f6 wip : shuffle at the init phase 2022-11-30 18:38:22 +01:00
gvcgael
1e7dbc61e9 add logs 2022-11-30 16:45:37 +01:00
f34980e28f Merge pull request 'feat(verif): add a confirm dialog for tocards' (#3) from feat/french_with_check into french
Reviewed-on: #3
2022-11-30 15:20:39 +00:00
qdegrandmaison
e5e23caab8 feat(verif): no need for a DOM node 2022-11-30 16:10:09 +01:00
qdegrandmaison
21bb6add65 feat(verif): add a confirm dialog for tocards 2022-11-30 16:08:41 +01:00
gvcgael
c39968865c french lang 2022-11-30 14:39:47 +01:00

View File

@@ -115,7 +115,7 @@ async fn input(Json(input): Json<Input>) -> String {
let mut state = STATE.lock().await;
if state.remaining.is_empty() {
return "... He mais tout le monde a déja pioché !!".into();
return "ERROR (everybody drew already)".into();
}
info!("joueurs qui restent : {:?}", state.remaining.join(","));
match state.remaining.iter().position(|p| input.person == *p).map(|e| state.remaining.remove(e)) {
@@ -140,6 +140,6 @@ async fn input(Json(input): Json<Input>) -> String {
None => "ERROR".to_string()
}
}
None => "... He mais tu as déja pioché !".to_string()
None => "Vous avez déja pioché !".to_string()
}
}