Ludii Forum
Don't seem to be able to set AI in code - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Problems (https://ludii.games/forums/forumdisplay.php?fid=5)
+--- Forum: AI Problems (https://ludii.games/forums/forumdisplay.php?fid=7)
+--- Thread: Don't seem to be able to set AI in code (/showthread.php?tid=279)



Don't seem to be able to set AI in code - slimy_asparagus - 11-24-2020

Code:
(metadata
   
    (ai
    (bestagent "Alpha-Beta")
    (heuristics (mobilitySimple))
    )
           
)
I put the above in the code. However "Ludii AI" seems to be UCT rather than Alpha-Beta. What am I doing wrong?


RE: Don't seem to be able to set AI in code - cambolbro - 11-24-2020

Hi,

You have two spelling mistakes:

• "bestagent" should be "bestAgent"

• "Alpha-Beta" should be "AlphaBeta"

Regards,
Cameron


RE: Don't seem to be able to set AI in code - slimy_asparagus - 11-24-2020

(11-24-2020, 06:44 AM)cambolbro Wrote: Hi,

You have two spelling mistakes:

• "bestagent" should be "bestAgent"

• "Alpha-Beta" should be "AlphaBeta"

Regards,
Cameron

Cameron,

Thanks. So the first one was clearly user error. For the second I could not find "AlphaBeta" in the documentation. Also everything in  the GUI says there is a hyphen. May be the documentation could contain a list of what the correct values for the different AI's are?

Thanks Nicholas