I\'m making a ro sham bo game. Functions in swift are different than what I have used before. I keep getting an error:
Variable used before being init
Try var returnval: Int = 0 (or another random number in case your if-else statements are exhaustive)
var returnval: Int = 0