2 ms·
Kinda funny I was writing a chess engine in Python that was able to beat my tester (who beats the average person but is near the bottom of the bracket at the ch
by PaulHoule 2y ago
Kinda funny I was writing a chess engine in Python that was able to beat my tester (who beats the average person but is near the bottom of the bracket at the chess club) with just 6 plies of alpha-beta.
He tells me he'd be happy if it played at the same level but was faster (play more games) and also that if I want to take it to the chess club it has to respect time control. Supporting something like XBoard and UCI would also be a hassle in Python because it needs a comms thread that can interrupt a think thread.
I rewrote it in Java and the process was super-fast because I could cut-and-paste the data in the test suite also I had mastered the signs in the negamax algorithm (I screwed that up and it discovered this https://en.wikipedia.org/wiki/Fool%27s_mate https://en.wikipedia.org/wiki/Fool%27s_mate !)
It's different from a lot of applications work because it's really a simple program and doesn't have the panopoly of features that you miss when you try something like
https://mobilesyrup.com/2024/09/24/sonos-employees-app-botched-execs-launched-anyways/ https://mobilesyrup.com/2024/09/24/sonos-employees-app-botch...
the hard part is that right now it is spending roughly equal time in evaluation and managing transposition tables. I think I can speed up eval about 20x which is going to make me code up some kind of specialized off-heap hashtable.