Stockfish Nullmove uci option #178

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

mvk
Posts: 589
Joined: Tue Jun 04, 2013 10:15 pm

Re: Stockfish Nullmove uci option #178

Post by mvk »

I can' find that version. There is a link to 24.0 listed on http://euscan.iksaif.net/package/games-board/crafty/ , which is http://www.craftychess.com/crafty-24.0.zip , but that gives an 404 http error (not found).

The B language had mandatory parentheses for return, I found. C inherited this but dropped this in the first edition of K&R (except that the examples were not fixed at the time yet).
[Account deleted]
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Stockfish Nullmove uci option #178

Post by bob »

syzygy wrote:
bob wrote:I will probably fix the last one above in any case since I don't really like the way it reads...
Better be careful not to introduce any bugs.
BTW, the last statement I found in GenerateCheckEvasions(), but I can't find the first example. Where, exactly, is that, if you remember?
It's from setboard.c.
OK, apparently that one was already cleaned up. I've been going over the code procedure by procedure, fixing comments, cleaning up any kludgey stuff, etc...
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Stockfish Nullmove uci option #178

Post by bob »

mvk wrote:I can' find that version. There is a link to 24.0 listed on http://euscan.iksaif.net/package/games-board/crafty/ , which is http://www.craftychess.com/crafty-24.0.zip , but that gives an 404 http error (not found).

The B language had mandatory parentheses for return, I found. C inherited this but dropped this in the first edition of K&R (except that the examples were not fixed at the time yet).
24.0 has not yet been released. It has had significant changes to the source. Lots of clean-up, improved SMP code, comments corrected to match source, source cleaned up to be more readable in many places, etc. It will be released fairly soon...

I won't venture to guess where the return (n) stuff started. Might have been back in the original stages, where some of the original Crafty was a pure fortran-to-C (done via a Zortech Fortran-to-C translator) conversion from Cray Blitz (Fortran). I had been intending to fix that among other things for quite a while, but since it had no effect on the playing ability, I had just put it off. I started this clean-up a month or so prior to the last CCT, and am getting close.