Adjusted RPS related actions

This commit is contained in:
Aaron
2021-01-23 16:47:31 -05:00
parent e461dae024
commit 219de54856
3 changed files with 6 additions and 4 deletions
+4 -2
View File
@@ -15,10 +15,12 @@ func walkAction() {
}
func jumpAction() {
let rps = RPS()
}
func rpsAction() {
func rpsAction(choice: RPS.Choice) -> Bool? {
let rps = RPS()
return rps.playRPS(you: choice, computer: RPS.randomComputerChoice())
}