From 2eeb560fbb5559c2492d175d05cfeeac0c945b45 Mon Sep 17 00:00:00 2001 From: Aaron Date: Thu, 21 Jan 2021 13:46:08 -0500 Subject: [PATCH] Started noticiation logic. --- ProjectClock/MathExpressions.swift | 2 +- ProjectClock/NotificationLogic.swift | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ProjectClock/MathExpressions.swift b/ProjectClock/MathExpressions.swift index 39ad7a4..d908330 100644 --- a/ProjectClock/MathExpressions.swift +++ b/ProjectClock/MathExpressions.swift @@ -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 diff --git a/ProjectClock/NotificationLogic.swift b/ProjectClock/NotificationLogic.swift index f2e7815..2f06fe5 100644 --- a/ProjectClock/NotificationLogic.swift +++ b/ProjectClock/NotificationLogic.swift @@ -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() {