From: Geoffrey Allott Date: Wed, 7 Jun 2023 22:41:56 +0000 (+0100) Subject: show a different error message when taking an invalid action while choosing to put... X-Git-Url: https://git.pointlesshacks.com/?a=commitdiff_plain;h=2f9a90649182708e0751fececb962987e6b2e7a9;p=pokerwave.git show a different error message when taking an invalid action while choosing to put in box --- diff --git a/src/game/cribbage/mod.rs b/src/game/cribbage/mod.rs index 7afbbcd..ad51a7e 100644 --- a/src/game/cribbage/mod.rs +++ b/src/game/cribbage/mod.rs @@ -237,6 +237,7 @@ impl Game for Cribbage { Ok(ValidatedUserAction(UserAction { timestamp, username, action: Action::Pass })) } } + (State::Choosing, _) => Err(ActionError::Dealing), (State::TurnUp, _) => Err(ActionError::Dealing), (State::ScoringTurnUp, _) => Err(ActionError::Dealing), (State::Scoring, _) => Err(ActionError::Dealing),