Ludii Forum
how to use the features of states and actions? - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Problems (https://ludii.games/forums/forumdisplay.php?fid=5)
+--- Forum: Ludii Player Problems (https://ludii.games/forums/forumdisplay.php?fid=6)
+--- Thread: how to use the features of states and actions? (/showthread.php?tid=1338)



how to use the features of states and actions? - jack_hehe - 11-06-2022

It seems that Ludii has already provided the automatical way to get the features of states and actions in the features folder of the Ludii source code. How can we use this interfaces? Can you show some examples in some games like Tic-Tac-Toe? Tongue


RE: how to use the features of states and actions? - DennisSoemers - 11-25-2022

Hello!

There's a lot of different aspects to features, I'm not sure which one(s) you are interested in? Do you want to run our training code to train new features for new games? Or see examples of (Java) AI code that uses features? Or see examples of features that have already been trained, just to see what they look like / play against an AI using them?

Tic-Tac-Toe happens to be one of the games for which trained features are in fact already included in the public Ludii distributable. You can see them listed here: https://github.com/Ludeme/Ludii/blob/master/Common/res/def_ai/Tic-Tac-Toe_ai.def#L7

When listed in the AI metadata of a game's .lud file like that, some of the built-in Ludii AIs can find them and use them. For example, the Biased MCTS agents use these features to guide their search.