You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
wesnoth_tactical_ai: top-level Lua files never run (if io then raises on an undefined global) #51
Every top-level .lua file fails to load, so a Lua candidate action written the way the instruction describes never runs in grading, and the grade doesn't say so. The sandbox header in judge/eval_wesnoth.py ends in if io then. io isn't defined in Wesnoth's Lua, and reading an undefined global raises:
error scripting/lua: ~add-ons/my_ai/my_recruit.lua:23: variable 'io' must be assigned before being used
This is the instruction's own example CA, unmodified. Local testing has no header, so the same file loads there.
Impact
The submitted Lua code never runs; only the header lines before the failure take effect. Qwen3.8 Flash Next's public final submission loads its Lua CAs this way and scores 48, 67, 57 and 58 on the current judge, and 81, 81, 76 and 79 once the files load. A test CA that stops every unit scores 41 and 47 on the current judge and 0 and 0 with the files loading. We don't know how many other submissions are affected. Archived submissions with a top-level .lua would show it.
Activity