Optional Lua provider with the same decision shape as JavaScriptAI.
A Lua function receives (perception, state) and returns either an action
table or { action = action_table, state = state_table, events = {...} }.
The host is supplied so games can choose their own VM policy and tests can
inject a fake without loading Pyroeis.
Search a game whose state and operations are exposed by named Lua functions.
Defaults are current_player, legal_moves, apply_move, is_terminal and
evaluate, each receiving the state and, for apply_move, the move as arguments.
Optional Lua provider with the same decision shape as
JavaScriptAI.A Lua function receives
(perception, state)and returns either an action table or{ action = action_table, state = state_table, events = {...} }. The host is supplied so games can choose their own VM policy and tests can inject a fake without loading Pyroeis.Example