Skip to content

Instantly share code, notes, and snippets.

@satan87
Created August 1, 2020 20:44
Show Gist options
  • Save satan87/9a3585a16b947310a94a52053fe902af to your computer and use it in GitHub Desktop.
Save satan87/9a3585a16b947310a94a52053fe902af to your computer and use it in GitHub Desktop.
private func generateCombination() -> Combination {
var dice = Dice()
dice.roll()
let valueOne = dice.value
dice.roll()
let valueTwo = dice.value
dice.roll()
let valueThree = dice.value
return Combination(one: valueOne, two: valueTwo, three: valueThree)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment