On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+2)

Haha thanks! The AI uses a minimax algorithm inspired by this Sebastian Lague video:

But it's only at a depth of 3 (meaning it sees three moves into the future) and it only evaluates the position based on piece values rather than piece activity, king danger, etc. Basically, it thinks incredibly short-term and will throw its king away to gain a quick advantage.