Integrating PuzzleWakeMethod (1/2)

This commit is contained in:
Aaron
2021-01-21 14:27:27 -05:00
parent 2eeb560fbb
commit acfcdbed24
3 changed files with 60 additions and 4 deletions
+4 -2
View File
@@ -8,6 +8,7 @@
import Foundation
import CoreMotion
import UserNotifications
import UIKit
let motionManager = CMMotionManager()
@@ -27,14 +28,15 @@ func jumpAction() {
}
func puzzleAction() {
func puzzleAction(puzzleQuestionLabel: UILabel) -> [Int] {
var problem = QuadraticProb()
let answer = problem.getAnswer()
let problemString = problem.getProblem()
print("Problem: \(problemString)")
puzzleQuestionLabel.text = "Solve: \(problemString)"
print("Answer: \(answer)")
return answer
}
func smashAction() {