diff --git a/states/loading.lua b/states/loading.lua index ba2899e..a14384f 100644 --- a/states/loading.lua +++ b/states/loading.lua @@ -36,7 +36,10 @@ function state_loading() board:reset() repeat board:solve_step(true) - yield() + -- reduce the number of yields to speed up the process + if board_size == 10 and rnd(1) < .2 or true then + yield() + end until board:is_complete() until board:is_valid()