Dev Builds » 20141103-1635

Use this dev build

NCM plays each Stockfish dev build 20,000 times against Stockfish 14. This yields an approximate Elo difference and establishes confidence in the strength of the dev builds.

Summary

Host Duration Avg Base NPS Games WLD Standard Elo Ptnml(0-2) Gamepair Elo

Test Detail

ID Host Base NPS Games WLD Standard Elo Ptnml(0-2) Gamepair Elo CLI PGN

Commit

Commit ID d12378497cb24f40d3510cdcfaecd1335f523196
Author lucasart
Date 2014-11-03 16:35:02 UTC
Do not assume that enum are signed Clang 3.5 issues warning on constructs like: abs(f1 - f2). The thing is that f1 and f2 are enum types, and the range given (all positive) allows the compiler to choose an unsigned type (efficiency being one reason to prefer unsigned arithmetic). If f1 < f2 are unsigned, then f1 - f2 wraps around zero and the abs() becomes a no-op. It's the reinterpretation of the unsigned result (large value) as a signed int that happens to give the correct result, thanks to 2's complement. This is all tricky and dangerous! In the spirit of the standard, we assume nothing on the signedness of enums, and simply calculate the rank and file distances as: - rank_dist(r1, r2) = r1 < r2 ? r2 - r1 : r1 - r2 - file_dist(f1, f2) = f1 < f2 ? f2 - f1 : f1 - f2 this logic can in fact be applied to any enum we may use, so for better generality and to avoid code duplication, we use a template function diff() here. No functional change. Resolves #95
Copyright 2011–2024 Next Chess Move LLC