How would someone go about making a simplistic playable chess ai on roblox

So this is my first post on here and I ain’t sure if it’s supposed to be in this category but whatever anyway a few months ago I wanted to test myself by trying to make a simple ai which you can play chess with and it responds with basic playable moves and nothing too complicated but when I hoped on the devforum to look for answers on which process to follow and what to research to achieve my said goal there was nothing so I dropped it but the idea sparked back up again a few days ago and I’ve heard there are multiple devs who have found fast and efficient ways to pull it off so if so please help me out. Thanks