[micro_ai] tag: remove code for old-style CA syntax
All Micro AIs have now been converted to using external CAs.
This commit is contained in:
parent
436f36c80a
commit
ed10e8e8a8
1 changed files with 4 additions and 9 deletions
|
@ -46,15 +46,10 @@ local function add_CAs(side, CA_parms, CA_cfg)
|
|||
max_score = parms.score
|
||||
}
|
||||
|
||||
if parms.location then -- if using external CAs
|
||||
CA.location = parms.location
|
||||
local cfg = string.sub(AH.serialize(CA_cfg), 2, -2) -- need to strip surrounding {}
|
||||
CA.eval_parms = cfg
|
||||
CA.exec_parms = cfg
|
||||
else -- if using "regular" CAs
|
||||
CA.evaluation = "return (...):" .. (parms.eval_id or parms.ca_id) .. "_eval(" .. AH.serialize(CA_cfg) .. ")"
|
||||
CA.execution = "(...):" .. (parms.eval_id or parms.ca_id) .. "_exec(" .. AH.serialize(CA_cfg) .. ")"
|
||||
end
|
||||
CA.location = parms.location
|
||||
local cfg = string.sub(AH.serialize(CA_cfg), 2, -2) -- need to strip surrounding {}
|
||||
CA.eval_parms = cfg
|
||||
CA.exec_parms = cfg
|
||||
|
||||
W.modify_ai {
|
||||
side = side,
|
||||
|
|
Loading…
Add table
Reference in a new issue