Removed a few yields to speed up the process a bit

This commit is contained in:
Simon Cambier 2023-10-10 22:16:19 +02:00
parent 4c925cb911
commit 3bec0e91fe

View File

@ -36,7 +36,10 @@ function state_loading()
board:reset() board:reset()
repeat repeat
board:solve_step(true) board:solve_step(true)
-- reduce the number of yields to speed up the process
if board_size == 10 and rnd(1) < .2 or true then
yield() yield()
end
until board:is_complete() until board:is_complete()
until board:is_valid() until board:is_valid()