Compare commits
9 Commits
354f05b0f5
...
gaelg/forb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ed9a91114a | ||
|
|
1ef286ec93 | ||
|
|
6d92ccb908 | ||
|
|
487b6312f6 | ||
|
|
1e7dbc61e9 | ||
| f34980e28f | |||
|
|
e5e23caab8 | ||
|
|
21bb6add65 | ||
|
|
c39968865c |
@@ -115,7 +115,7 @@ async fn input(Json(input): Json<Input>) -> String {
|
|||||||
let mut state = STATE.lock().await;
|
let mut state = STATE.lock().await;
|
||||||
|
|
||||||
if state.remaining.is_empty() {
|
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(","));
|
info!("joueurs qui restent : {:?}", state.remaining.join(","));
|
||||||
match state.remaining.iter().position(|p| input.person == *p).map(|e| state.remaining.remove(e)) {
|
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 => "ERROR".to_string()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
None => "... He mais tu as déja pioché !".to_string()
|
None => "Vous avez déja pioché !".to_string()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user