Skip to content

Commit 524083a

Browse files
committed
Merge branch 'TM_Change_2' of https://github.com/TierynnB/Stockfish into TM_Change_2
2 parents 8a0206f + 4a5ba40 commit 524083a

File tree

11 files changed

+99
-91
lines changed

11 files changed

+99
-91
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ Taras Vuk (TarasVuk)
216216
Thanar2
217217
thaspel
218218
theo77186
219+
TierynnB
219220
Ting-Hsuan Huang (fffelix-huang)
220221
Tobias Steinmann
221222
Tomasz Sobczyk (Sopel97)

src/bitboard.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ inline Bitboard pawn_attacks_bb(Color c, Square s) {
163163
inline Bitboard line_bb(Square s1, Square s2) {
164164

165165
assert(is_ok(s1) && is_ok(s2));
166-
167166
return LineBB[s1][s2];
168167
}
169168

@@ -178,7 +177,6 @@ inline Bitboard line_bb(Square s1, Square s2) {
178177
inline Bitboard between_bb(Square s1, Square s2) {
179178

180179
assert(is_ok(s1) && is_ok(s2));
181-
182180
return BetweenBB[s1][s2];
183181
}
184182

@@ -216,7 +214,6 @@ template<PieceType Pt>
216214
inline Bitboard attacks_bb(Square s) {
217215

218216
assert((Pt != PAWN) && (is_ok(s)));
219-
220217
return PseudoAttacks[Pt][s];
221218
}
222219

src/evaluate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ Value Eval::evaluate(const Position& pos, int optimism) {
219219
v = v * (200 - shuffling) / 214;
220220

221221
// Guarantee evaluation does not hit the tablebase range
222-
v = std::clamp(int(v), VALUE_TB_LOSS_IN_MAX_PLY + 1, VALUE_TB_WIN_IN_MAX_PLY - 1);
222+
v = std::clamp(v, VALUE_TB_LOSS_IN_MAX_PLY + 1, VALUE_TB_WIN_IN_MAX_PLY - 1);
223223

224224
return v;
225225
}

src/evaluate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Value evaluate(const Position& pos, int optimism);
3939
// The default net name MUST follow the format nn-[SHA256 first 12 digits].nnue
4040
// for the build process (profile-build and fishtest) to work. Do not change the
4141
// name of the macro, as it is used in the Makefile.
42-
#define EvalFileDefaultNameBig "nn-baff1edbea57.nnue"
42+
#define EvalFileDefaultNameBig "nn-b1a57edbea57.nnue"
4343
#define EvalFileDefaultNameSmall "nn-baff1ede1f90.nnue"
4444

4545
struct EvalFile {

src/movepick.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ void MovePicker::score() {
173173
else if constexpr (Type == QUIETS)
174174
{
175175
Piece pc = pos.moved_piece(m);
176-
PieceType pt = type_of(pos.moved_piece(m));
176+
PieceType pt = type_of(pc);
177177
Square from = m.from_sq();
178178
Square to = m.to_sq();
179179

src/position.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,13 +252,11 @@ inline CastlingRights Position::castling_rights(Color c) const {
252252

253253
inline bool Position::castling_impeded(CastlingRights cr) const {
254254
assert(cr == WHITE_OO || cr == WHITE_OOO || cr == BLACK_OO || cr == BLACK_OOO);
255-
256255
return pieces() & castlingPath[cr];
257256
}
258257

259258
inline Square Position::castling_rook_square(CastlingRights cr) const {
260259
assert(cr == WHITE_OO || cr == WHITE_OOO || cr == BLACK_OO || cr == BLACK_OOO);
261-
262260
return castlingRookSquare[cr];
263261
}
264262

0 commit comments

Comments
 (0)