We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d0bf77 commit 85a3ad1Copy full SHA for 85a3ad1
2022/day-02/rochambeau.js
@@ -47,7 +47,7 @@ const strategizeRound = (opponent, outcome) => {
47
const offset = strategyCodes.indexOf(outcome) - 1
48
let target = opponentCodes.indexOf(opponent) + offset
49
if (target >= opponentCodes.length) { target = 0 }
50
- if (target < 0) { target = opponentCodes.length - 1}
+ if (target < 0) { target = opponentCodes.length - 1 }
51
return opponentCodes[target]
52
}
53
return scoreShape(findPlay(opponent, outcome)) + scoreOutcome
0 commit comments