10-11-2021, 03:17 PM
How can you improve the heuristics for a specific game?
I am trying to build my own heuristic for a game and I found this example of how to make use of some predefined heuristic functions :
https://ludii.games/forums/showthread.php?tid=428
But what if I need a more complex heuristic? How do I define it myself? Can I define it in the .lud file? Or do I need to define it in a new AI class?
If I want to define a more complex heuristic in my AI class, how do I get access to the game state? From what I understand, variables of type Context give the description of the current game state, but how can I access the different pieces and their positions? I was trying to look through the repository but I couldn't figure it out.
I am trying to build my own heuristic for a game and I found this example of how to make use of some predefined heuristic functions :
https://ludii.games/forums/showthread.php?tid=428
But what if I need a more complex heuristic? How do I define it myself? Can I define it in the .lud file? Or do I need to define it in a new AI class?
If I want to define a more complex heuristic in my AI class, how do I get access to the game state? From what I understand, variables of type Context give the description of the current game state, but how can I access the different pieces and their positions? I was trying to look through the repository but I couldn't figure it out.