This commit is contained in:
2022-12-03 14:53:06 +00:00
parent c4266bb16c
commit 2dc8abfbc6
4 changed files with 78 additions and 1 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ fn play_score(opponent: &str, player: &str) -> usize {
player_win_score(player) + outcome as usize
}
fn player_hand_for_outcome<'a>(outcome: &Outcome, opponent: &str) -> &'a str {
fn player_hand_for_outcome(outcome: &Outcome, opponent: &str) -> &'static str {
match outcome {
Outcome::Won => match opponent {
"A" => "Y",