Skip to content

Instantly share code, notes, and snippets.

@wizard1066
Created April 6, 2020 13:02
Show Gist options
  • Save wizard1066/4a785599d0a7b17dca5e05f277b6f3b4 to your computer and use it in GitHub Desktop.
Save wizard1066/4a785599d0a7b17dca5e05f277b6f3b4 to your computer and use it in GitHub Desktop.
abgwtp20
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