mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Small cleanups
Delete cast to int in movepick. update AUTHORS. adjust assert in sigmoid. fix spelling mistakes in README closes https://github.com/official-stockfish/Stockfish/pull/3922 closes https://github.com/official-stockfish/Stockfish/pull/3948 closes https://github.com/official-stockfish/Stockfish/pull/3942 No functional change
This commit is contained in:
committed by
Joost VandeVondele
parent
45f2416db4
commit
004ea2c25e
1
AUTHORS
1
AUTHORS
@@ -155,6 +155,7 @@ Pascal Romaret
|
|||||||
Pasquale Pigazzini (ppigazzini)
|
Pasquale Pigazzini (ppigazzini)
|
||||||
Patrick Jansen (mibere)
|
Patrick Jansen (mibere)
|
||||||
pellanda
|
pellanda
|
||||||
|
Peter Schneider (pschneider1968)
|
||||||
Peter Zsifkovits (CoffeeOne)
|
Peter Zsifkovits (CoffeeOne)
|
||||||
Praveen Kumar Tummala (praveentml)
|
Praveen Kumar Tummala (praveentml)
|
||||||
Rahul Dsilva (silversolver1)
|
Rahul Dsilva (silversolver1)
|
||||||
|
|||||||
19
README.md
19
README.md
@@ -10,12 +10,11 @@ Cute Chess, eboard, Arena, Sigma Chess, Shredder, Chess Partner or Fritz) in ord
|
|||||||
to be used comfortably. Read the documentation for your GUI of choice for information
|
to be used comfortably. Read the documentation for your GUI of choice for information
|
||||||
about how to use Stockfish with it.
|
about how to use Stockfish with it.
|
||||||
|
|
||||||
The Stockfish engine features two evaluation functions for chess, the classical
|
The Stockfish engine features two evaluation functions for chess.
|
||||||
evaluation based on handcrafted terms, and the NNUE evaluation based on efficiently
|
The efficiently updatable neural network (NNUE) based evaluation is the default and by far the strongest.
|
||||||
updatable neural networks. The classical evaluation runs efficiently on almost all
|
The classical evaluation based on handcrafted terms remains available.
|
||||||
CPU architectures, while the NNUE evaluation benefits from the vector
|
The strongest network is integrated in the binary and downloaded automatically during the build process.
|
||||||
intrinsics available on most CPUs (sse2, avx2, neon, or similar).
|
The NNUE evaluation benefits from the vector intrinsics available on most CPUs (sse2, avx2, neon, or similar).
|
||||||
|
|
||||||
|
|
||||||
## Files
|
## Files
|
||||||
|
|
||||||
@@ -37,7 +36,7 @@ This distribution of Stockfish consists of the following files:
|
|||||||
|
|
||||||
The Universal Chess Interface (UCI) is a standard protocol used to communicate with
|
The Universal Chess Interface (UCI) is a standard protocol used to communicate with
|
||||||
a chess engine, and is the recommended way to do so for typical graphical user interfaces
|
a chess engine, and is the recommended way to do so for typical graphical user interfaces
|
||||||
(GUI) or chess tools. Stockfish implements the majority of it options as described
|
(GUI) or chess tools. Stockfish implements the majority of its options as described
|
||||||
in [the UCI protocol](https://www.shredderchess.com/download/div/uci.zip).
|
in [the UCI protocol](https://www.shredderchess.com/download/div/uci.zip).
|
||||||
|
|
||||||
Developers can see the default values for UCI options available in Stockfish by typing
|
Developers can see the default values for UCI options available in Stockfish by typing
|
||||||
@@ -103,7 +102,7 @@ change them via a chess GUI. This is a list of available UCI options in Stockfis
|
|||||||
Example: `C:\tablebases\wdl345;C:\tablebases\wdl6;D:\tablebases\dtz345;D:\tablebases\dtz6`
|
Example: `C:\tablebases\wdl345;C:\tablebases\wdl6;D:\tablebases\dtz345;D:\tablebases\dtz6`
|
||||||
|
|
||||||
It is recommended to store .rtbw files on an SSD. There is no loss in storing
|
It is recommended to store .rtbw files on an SSD. There is no loss in storing
|
||||||
the .rtbz files on a regular HD. It is recommended to verify all md5 checksums
|
the .rtbz files on a regular HDD. It is recommended to verify all md5 checksums
|
||||||
of the downloaded tablebase files (`md5sum -c checksum.md5`) as corruption will
|
of the downloaded tablebase files (`md5sum -c checksum.md5`) as corruption will
|
||||||
lead to engine crashes.
|
lead to engine crashes.
|
||||||
|
|
||||||
@@ -322,10 +321,10 @@ it (either by itself or as part of some bigger software package), or
|
|||||||
using it as the starting point for a software project of your own.
|
using it as the starting point for a software project of your own.
|
||||||
|
|
||||||
The only real limitation is that whenever you distribute Stockfish in
|
The only real limitation is that whenever you distribute Stockfish in
|
||||||
some way, you MUST always include the full source code, or a pointer
|
some way, you MUST always include the license, the full source code, or a pointer
|
||||||
to where the source code can be found, to generate the exact binary
|
to where the source code can be found, to generate the exact binary
|
||||||
you are distributing. If you make any changes to the source code,
|
you are distributing. If you make any changes to the source code,
|
||||||
these changes must also be made available under the GPL.
|
these changes must also be made available under the GPL v3.
|
||||||
|
|
||||||
For full details, read the copy of the GPL v3 found in the file named
|
For full details, read the copy of the GPL v3 found in the file named
|
||||||
[*Copying.txt*](https://github.com/official-stockfish/Stockfish/blob/master/Copying.txt).
|
[*Copying.txt*](https://github.com/official-stockfish/Stockfish/blob/master/Copying.txt).
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ inline int64_t sigmoid(int64_t t, int64_t x0,
|
|||||||
int64_t P,
|
int64_t P,
|
||||||
int64_t Q)
|
int64_t Q)
|
||||||
{
|
{
|
||||||
assert(C > 0);
|
assert(C > 0 && Q != 0);
|
||||||
return y0 + P * (t-x0) / (Q * (std::abs(t-x0) + C)) ;
|
return y0 + P * (t-x0) / (Q * (std::abs(t-x0) + C)) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ void MovePicker::score() {
|
|||||||
|
|
||||||
for (auto& m : *this)
|
for (auto& m : *this)
|
||||||
if constexpr (Type == CAPTURES)
|
if constexpr (Type == CAPTURES)
|
||||||
m.value = int(PieceValue[MG][pos.piece_on(to_sq(m))]) * 6
|
m.value = 6 * PieceValue[MG][pos.piece_on(to_sq(m))]
|
||||||
+ (*captureHistory)[pos.moved_piece(m)][to_sq(m)][type_of(pos.piece_on(to_sq(m)))];
|
+ (*captureHistory)[pos.moved_piece(m)][to_sq(m)][type_of(pos.piece_on(to_sq(m)))];
|
||||||
|
|
||||||
else if constexpr (Type == QUIETS)
|
else if constexpr (Type == QUIETS)
|
||||||
|
|||||||
Reference in New Issue
Block a user