From 6e718eb3b03ad2375b1e2f55cb827259eaefb195 Mon Sep 17 00:00:00 2001 From: empathicqubit Date: Sat, 8 May 2021 07:01:47 -0400 Subject: [PATCH] Don't use separate timeout for vertical levels since more movements are counted towards resetting the timer. --- runner.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/runner.lua b/runner.lua index 68733aa..c2ec7bf 100644 --- a/runner.lua +++ b/runner.lua @@ -571,12 +571,7 @@ local function mainLoop(_M, genome) end game.getPositions() - local timeoutConst = 0 - if game.vertical then - timeoutConst = config.NeatConfig.TimeoutConstant * 10 - else - timeoutConst = config.NeatConfig.TimeoutConstant - end + local timeoutConst = config.NeatConfig.TimeoutConstant local fell = game.fell() if (fell or game.diedFromHit()) and _M.timeout > 0 then