From 3bec0e91fe6b0447a45c54db93525b73d084da07 Mon Sep 17 00:00:00 2001 From: Simon Cambier Date: Tue, 10 Oct 2023 22:16:19 +0200 Subject: [PATCH] Removed a few yields to speed up the process a bit --- states/loading.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()