sje wrote:Two suggestions for Stockfish:
1. In benchmark.cpp and ucioption.coop, use
strtol() instead of
atoi(). From the man page:
The atoi() and atoi_l() functions have been deprecated by strtol() and strtol_l() and should not be used in new code.
Why it is deprecated ?
BTW atoi() is part of the standard C library, so I don't think it will go away soon, say within 50 years from now.
P.S: I hate doing something only because it is written somewhere, if I don't understand why
sje wrote:
2. I note the general move generation outputs move by piece kind order, something I used in Spector long ago. I suggest that Stockfish might try an additional trick: within moves by a given piece kind, generate in descending order of center tropism gain.
Well in move generation bitboard is serialized with lsb, so I don't think what you suggest is doable _there_
To try your idea, if I have understood it correctly, we should, instead, alter the move scoring function to score a move according to the psqt difference value: psqt(to) - psqt(from)
I did this in the past, among the trials to modify quiet moves scoring, but I don't remember it was successful...but maybe it was me that wrote a wrong patch.