5 ms·
I wrote a toy chess engine a few weeks ago as well as an example for one of my open source libraries [1]. I was inspired by a video of someone writing one in ha
by ludocode 6y ago
I wrote a toy chess engine a few weeks ago as well as an example for one of my open source libraries [1]. I was inspired by a video of someone writing one in half an hour [2], so I also assumed it would take a day or two at most. It took more like a week. But it was very satisfying to not be able to beat my engine anymore.
I highly recommend that all programmers with even a passing interest in chess spend some time writing an engine.
[1] https://github.com/ludocode/pottery/tree/master/examples/pottery/clayfish https://github.com/ludocode/pottery/tree/master/examples/pot...
[2] https://youtube.com/watch?v=nzObJ2BpKrk https://youtube.com/watch?v=nzObJ2BpKrk