Skip to content

Instantly share code, notes, and snippets.

@jasongorman

jasongorman/game.js Secret

Created Apr 3, 2020
Embed
What would you like to do?
function playHand(opponent, score, beats, losesTo) {
if (opponent === beats) {
score.player1++;
} else {
if (opponent === losesTo) {
score.player2++;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment