When I created my chess variant and had to create an engine, I used ChatGPT and was surprised that it worked, too. But it was fun learning its flaws.