classViewController:UIViewController{@IBOutletweakvarinputField:UITextField!@IBOutletweakvaroutput:UITextView!varguesses:UInt=0varnumber:UInt32=0vargameOver=falseletMAX_GUESSES:UInt=8@IBActionfuncguess(sender:UIButton){varpossibleGuess:Int?=inputField.text.toInt()ifletguess=possibleGuess{//possi