Created
April 6, 2020 13:02
-
-
Save wizard1066/4a785599d0a7b17dca5e05f277b6f3b4 to your computer and use it in GitHub Desktop.
abgwtp20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func cellHistoryV(column:Int, row:Int, tVcount:Int, poke:String, stepperInst:StepperData, textText:inout [String], textColors:inout [Color]) { | |
let newRec = stepperSteps(stepIndex: (fCalc(c: column, r: row, x: tVcount)), stepText: poke, stepColor: backgrounds[Int(poke)! - 1]) | |
stepperInst.stepperDB[stepperInst.stepperValue] = newRec | |
stepperInst.stepperValue = stepperInst.stepperValue + 1 | |
textText[fCalc(c: column, r: row, x: tVcount)] = poke | |
textColors[fCalc(c: column, r: row, x: tVcount)] = backgrounds[Int(poke)! - 1] | |
} | |
func cellsUsedV(stepperInst:StepperData, figures:Int) -> Int { | |
var counting:Int = 0 | |
for loop in 0 ..< figures { | |
let link = stepperInst.stepperDB[loop] | |
if link.stepIndex != nil { | |
counting += 1 | |
} | |
} | |
return counting | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment