Bugfix, streak loss now diplays the lost streak
This commit is contained in:
parent
8578d2fe78
commit
2dca704e4a
|
@ -77,7 +77,7 @@ function Check(answer)
|
|||
Correct = Correct + 1
|
||||
else
|
||||
io.write(Colorize("Wrong!",COLOR.HighRed).." Answer is ("..Solution..")")
|
||||
if Streak >= 5 then io.write(Colorize(" [Streak Lost]",COLOR.Cyan,nil,COLORMODE.BlinkFast)) end
|
||||
if Streak >= 5 then io.write(Colorize(" ["..Streak.." Streak Lost]",COLOR.Cyan,nil,COLORMODE.BlinkFast)) end
|
||||
Streak = 0
|
||||
Wrong = Wrong + 1
|
||||
end
|
||||
|
@ -110,7 +110,7 @@ end
|
|||
function UpdateProgress()
|
||||
io.write("\027[s")
|
||||
io.write("\027[1;1H")
|
||||
ShowProgress(true)
|
||||
ShowProgress()
|
||||
io.write("\027[u")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue