Coding Adventure: Chess AI
https://www.youtube.com/watch?v=U4ogK0MIzqk
Chess programming looks so easy!

Moderators: hgm, Dann Corbit, Harvey Williamson
Unity was used to write this chess app. Therefore C# is the programming language. When I played against the app the quality of the moves seem to be way better than what the source code should produce. I had an easier time playing against SF at 7 ply than against this engine that searches 5 to 7 play and may reach 9 ply in the endgame. The Eval of this engine is not much more than static piece square tables with an adjustment between middlegame and endgame. Maybe there is more but I did not see it.Harald wrote: ↑Tue Feb 16, 2021 2:49 pmI just found this video from Sebastian Lague (Feb 12, 2021):
Coding Adventure: Chess AI
https://www.youtube.com/watch?v=U4ogK0MIzqk
Chess programming looks so easy!![]()
The interpolation between midgame and endgame is only used for the King. All other types have only a single PST. I think it's a pretty faithful implementation of this:
It would be even more trivial to get the engine working as a UCI engine using C#Mike Sherwin wrote: ↑Wed Feb 17, 2021 8:37 pmIt should be trivial to get this engine working as a Winboard or UCI engine using Beef. I want to learn Beef anyway so maybe I'll give it a try.
IT-person: "It's trivial to get this to work." (<- air of confidence)
LOL, nope.
Well, that was meant as a purely rethorical statement...
...but after this I couldn't stop wondering how long it would really take.
Code: Select all
Rank Name Elo +/- Games Score Draw
1 Fat MinimalChess 390 136 73 90.4% 8.2%
2 Sargon 1978 0 74 73 50.0% 15.1%
3 MinimalChess 0.2 -379 136 74 10.1% 6.8%
110 of 150 games finished.
If your manager would ask to add four more rows to the chess board. How long would it take to get engine running.mvanthoor wrote: ↑Thu Feb 18, 2021 6:36 pmLOL, nope.
"How long is this going to take?"
- "Hm.... about (4 hours) 4 days... if there are no complications."
In time, I have learned to pad time estimates quite generously, because there are ALWAYS complications. (But 4 hours -> 4 days is a bit tongue-in-cheek, obviously.)