07-29-2022, 08:03 AM
Alpha-Beta agents selected directly using that name in our dropdown menus will always use any heuristics that are specified in the way you described in the metadata of a game's .lud file. So no, through that mechanism you can't test different AlphaBeta agents with different heuristics against each other since they'll both be taking the heuristics from the game's metadata.
However, as of the latest release (or maybe also already the one before that, can't remember), all the way at the bottom of the dropdown menu for selecting AIs we also have an option labelled "From AI.DEF". After selecting this, you will be prompted with a filechooser to select a file describing (again in the metadata format as documented in Chapter 19 of the Ludii Language Reference) a complete agent, including things like heuristics, for that specific player. This should be a standalone *_ai.def file that only contains an (ai ...) entry, and nothing else.
So, you could for example write two such files, where the first file looks like this:
And the second file looks like this:
And then you can select each of those files once. Then you'll have two different agents that are both using the Alpha-Beta search algorithm, but with different heuristics each.
However, as of the latest release (or maybe also already the one before that, can't remember), all the way at the bottom of the dropdown menu for selecting AIs we also have an option labelled "From AI.DEF". After selecting this, you will be prompted with a filechooser to select a file describing (again in the metadata format as documented in Chapter 19 of the Ludii Language Reference) a complete agent, including things like heuristics, for that specific player. This should be a standalone *_ai.def file that only contains an (ai ...) entry, and nothing else.
So, you could for example write two such files, where the first file looks like this:
Code:
(ai
(alphaBeta (heuristics (influence)))
)
And the second file looks like this:
Code:
(ai
(alphaBeta (heuristics (nullHeuristic)))
)
And then you can select each of those files once. Then you'll have two different agents that are both using the Alpha-Beta search algorithm, but with different heuristics each.