day 3
This commit is contained in:
+1
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user