Started noticiation logic.
This commit is contained in:
@@ -119,7 +119,7 @@ let c = MathExpression.random()
|
||||
}
|
||||
|
||||
|
||||
class quadraticProb{
|
||||
class QuadraticProb{
|
||||
|
||||
let a = Int.random(in: 1...10)//ax^2
|
||||
let b = Int.random(in: 1...10)//bx
|
||||
|
||||
@@ -28,7 +28,13 @@ func jumpAction() {
|
||||
}
|
||||
|
||||
func puzzleAction() {
|
||||
var problem = QuadraticProb()
|
||||
|
||||
let answer = problem.getAnswer()
|
||||
let problemString = problem.getProblem()
|
||||
|
||||
print("Problem: \(problemString)")
|
||||
print("Answer: \(answer)")
|
||||
}
|
||||
|
||||
func smashAction() {
|
||||
|
||||
Reference in New Issue
Block a user