Scripting example project for Tabletop Playground that combines the pre-existing chess board setup with a javascript chess ai. The corresponding mod.io page can be found here.
The chess ai has been taken as is from the following github project:
- Original project: https://github.com/lhartikk/simple-chess-ai
- Related blogpost: https://www.freecodecamp.org/news/simple-chess-ai-step-by-step-1d55a9266977/
Note that the search depth has been reduced to lead to faster turn calculation times at the cost of worse AI moves