AI Arena: update [option] tags to new syntax

This commit is contained in:
mattsc 2016-03-25 13:58:52 -07:00
parent e48908f42f
commit 09ee5c7a4b

View file

@ -147,7 +147,7 @@
local opts = {}
for k,v in pairs(get_tests_table()) do
local cmd = { "command", {{ "set_variable", {name="test_id", value= k } } } }
table.insert(opts, { "option", { message = v, cmd } } )
table.insert(opts, { "option", { label = v, cmd } } )
end
W.message { speaker="narrator", message="Which test do you wish to run, O Mighty AI Developer?", table.unpack(opts) }
>>
@ -170,10 +170,10 @@
speaker=narrator
message= _ "Which AI do you wish to use, O Mighty AI Developer?"
[option]
message= _ "I am happy with the current AI of team 2, [$test_path_to_ai]" # wmllint: no spellcheck
label= _ "I am happy with the current AI of team 2, [$test_path_to_ai]" # wmllint: no spellcheck
[/option]
[option]
message= _ "My AI is TESTING AI DEFAULT, implemented as ai_composite." # wmllint: no spellcheck
label= _ "My AI is TESTING AI DEFAULT, implemented as ai_composite." # wmllint: no spellcheck
[command]
[set_variable]
name=test_path_to_ai
@ -182,7 +182,7 @@
[/command]
[/option]
[option]
message= _ "I am the king of FORMULA AI, and I will use its vast powers for world domination."
label= _ "I am the king of FORMULA AI, and I will use its vast powers for world domination."
[command]
[set_variable]
name=test_path_to_ai
@ -191,7 +191,7 @@
[/command]
[/option]
[option]
message= _ "I've come with my own AI, and I am ready to test its strength"
label= _ "I've come with my own AI, and I am ready to test its strength"
[command]
[message]
speaker=narrator
@ -205,7 +205,7 @@
[/command]
[/option]
[option]
message= _ "I want to test formulaAI-based poisoning improvements" # wmllint: no spellcheck
label= _ "I want to test formulaAI-based poisoning improvements" # wmllint: no spellcheck
[command]
[set_variable]
name=test_path_to_ai