-- 봇 플레이로 구매 시점 목표를 검사: lune run tests/Sim.spec.luau local Sim = require("../tools/simlib") local T = require("./check") local function at(log, id) for _, e in log do if e.id == id then return e.t end end return math.huge end local base = Sim.run(1, 3600) T.eq(#base, 20, "봇이 1시간 안에 20개 모두 삼") T.check(at(base, "Table2") <= 10, "첫 구매 10초 안") T.check(at(base, "Expand") >= 8 * 60 and at(base, "Expand") <= 12 * 60, "실내 확장 8~12분") local prev = 0 for i, e in base do if i > 1 and i <= 10 then T.check(e.t - prev <= 100, `1단계 #{i} 구매 간격 100초 이하`) elseif i > 10 then T.check(e.t - prev <= 180, `2단계 #{i} 구매 간격 180초 이하`) end prev = e.t end local x2 = Sim.run(2, 3600) T.check(at(x2, "Expand") < at(base, "Expand") * 0.65, "2배 수익이면 확장이 훨씬 빠름") T.done("Sim.spec")