(no title)
Recursing | 1 month ago
https://www.chessprogramming.org/ is also really interesting, see e.g. https://www.chessprogramming.org/Sunfish and https://www.chessprogramming.org/Quiescence_Search
Recursing | 1 month ago
https://www.chessprogramming.org/ is also really interesting, see e.g. https://www.chessprogramming.org/Sunfish and https://www.chessprogramming.org/Quiescence_Search
utopiah|1 month ago
Link I get shows 500 lines and it starts with 50 lines of piece-square tables. Maybe it's obvious when you are into the domain but otherwise... that's pretty much of opposite of what I would call "readable".
svat|1 month ago
> I got 111 by deleting the tables in the top, and the UI code in the bottom, and then running 'cloc' on the result. That gave 20 blanks, 56 comments and 111 lines of code. ;-)
Recursing|1 month ago
The file is 500 lines because of the piece square tables (as you mentioned), comments, and the CLI interface logic
Previous HN thread here: https://news.ycombinator.com/item?id=20068651