Skip to content

Commit 898521f

Browse files
author
gekomad
committed
.
1 parent e9763b0 commit 898521f

15 files changed

+8
-550
lines changed

src/Eval.cpp

+1-18
Original file line numberDiff line numberDiff line change
@@ -388,11 +388,6 @@ int Eval::getScore(const int side, const int N_PIECE, const int alpha, const int
388388
return lazyscore;
389389
}
390390

391-
// int endGameValue = getEndgameValue(N_PIECE, side);
392-
// if (abs(endGameValue) != INT_MAX) {
393-
// return endGameValue;
394-
// }
395-
396391
#ifdef DEBUG_MODE
397392
evaluationCount[WHITE] = evaluationCount[BLACK] = 0;
398393
memset(&SCORE_DEBUG, 0, sizeof(_TSCORE_DEBUG));
@@ -478,9 +473,7 @@ int Eval::getScore(const int side, const int N_PIECE, const int alpha, const int
478473

479474
cout << HEADER;
480475
cout << "Material: " << setw(10) << (double) (lazyscore_white - lazyscore_black) / 100.0 << setw(15) << (double) (lazyscore_white) / 100.0 << setw(10) << (double) (lazyscore_black) / 100.0 << "\n";
481-
// cout << "Semi-open file: " << setw(10) << (double) (SCORE_DEBUG.HALF_OPEN_FILE[WHITE] - SCORE_DEBUG.HALF_OPEN_FILE[BLACK]) / 100.0 << setw(15) << (double) (SCORE_DEBUG.HALF_OPEN_FILE[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.HALF_OPEN_FILE[BLACK]) / 100.0 << "\n";
482476
cout << "Mobility: " << setw(10) << (double) (mobWhite - mobBlack) / 100.0 << setw(15) << (double) (mobWhite) / 100.0 << setw(10) << (double) (mobBlack) / 100.0 << "\n";
483-
// cout << "Attack king: " << setw(10) << (double) (attack_king_white - attack_king_black) / 100.0 << setw(15) << (double) (attack_king_white) / 100.0 << setw(10) << (double) (attack_king_black) / 100.0 << "\n";
484477
cout << "Bonus attack king:" << setw(10) << (double) (bonus_attack_king_white - bonus_attack_king_black) / 100.0 << setw(15) << (double) (bonus_attack_king_white) / 100.0 << setw(10) << (double) (bonus_attack_king_black) / 100.0 << "\n";
485478

486479
cout << HEADER;
@@ -506,7 +499,6 @@ int Eval::getScore(const int side, const int N_PIECE, const int alpha, const int
506499
cout << " undevelop: " << setw(10) << (double) (SCORE_DEBUG.UNDEVELOPED_KNIGHT[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.UNDEVELOPED_KNIGHT[BLACK]) / 100.0 << "\n";
507500
cout << " trapped: " << setw(10) << (double) (SCORE_DEBUG.KNIGHT_TRAPPED[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.KNIGHT_TRAPPED[BLACK]) / 100.0 << "\n";
508501
cout << " mobility: " << setw(10) << (double) (SCORE_DEBUG.MOB_KNIGHT[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.MOB_KNIGHT[BLACK]) / 100.0 << "\n";
509-
// cout << " near enemy king " << setw(10) << (double) (SCORE_DEBUG.XKNIGHT_NEAR_KING[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.XKNIGHT_NEAR_KING[BLACK]) / 100.0 << "\n";
510502

511503
cout << HEADER;
512504
cout << "Bishop: " << setw(10) << (double) (Tresult.bishop[WHITE] - Tresult.bishop[BLACK]) / 100.0 << setw(15) << (double) (Tresult.bishop[WHITE]) / 100.0 << setw(10) << (double) (Tresult.bishop[BLACK]) / 100.0 << "\n";
@@ -515,7 +507,6 @@ int Eval::getScore(const int side, const int N_PIECE, const int alpha, const int
515507
cout << " undevelop: " << setw(10) << (double) (SCORE_DEBUG.UNDEVELOPED_BISHOP[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.UNDEVELOPED_BISHOP[BLACK]) / 100.0 << "\n";
516508
cout << " open diag: " << setw(10) << (double) (SCORE_DEBUG.OPEN_DIAG_BISHOP[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.OPEN_DIAG_BISHOP[BLACK]) / 100.0 << "\n";
517509
cout << " bonus 2 bishops: " << setw(10) << (double) (SCORE_DEBUG.BONUS2BISHOP[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.BONUS2BISHOP[BLACK]) / 100.0 << "\n";
518-
// cout << " near enemy king " << setw(10) << (double) (SCORE_DEBUG.XBISHOP_NEAR_KING[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.XBISHOP_NEAR_KING[BLACK]) / 100.0 << "\n";
519510

520511
cout << HEADER;
521512
cout << "Rook: " << setw(10) << (double) (Tresult.rooks[WHITE] - Tresult.rooks[BLACK]) / 100.0 << setw(15) << (double) (Tresult.rooks[WHITE]) / 100.0 << setw(10) << (double) (Tresult.rooks[BLACK]) / 100.0 << "\n";
@@ -524,27 +515,19 @@ int Eval::getScore(const int side, const int N_PIECE, const int alpha, const int
524515
cout << " mobility: " << setw(10) << (double) (SCORE_DEBUG.MOB_ROOK[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.MOB_ROOK[BLACK]) / 100.0 << "\n";
525516
cout << " blocked: " << setw(10) << (double) (SCORE_DEBUG.ROOK_BLOCKED[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.ROOK_BLOCKED[BLACK]) / 100.0 << "\n";
526517
cout << " open file: " << setw(10) << (double) (SCORE_DEBUG.ROOK_OPEN_FILE[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.ROOK_OPEN_FILE[BLACK]) / 100.0 << "\n";
527-
// cout << " semi open file: " << setw(10) << (double) (SCORE_DEBUG.ROOK_SEMI_OPEN_FILE[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.ROOK_SEMI_OPEN_FILE[BLACK]) / 100.0 << "\n";
528518
cout << " connected: " << setw(10) << (double) (SCORE_DEBUG.CONNECTED_ROOKS[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.CONNECTED_ROOKS[BLACK]) / 100.0 << "\n";
529-
// cout << " near enemy king " << setw(10) << (double) (SCORE_DEBUG.XROOK_NEAR_KING[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.XROOK_NEAR_KING[BLACK]) / 100.0 << "\n";
530519

531520
cout << HEADER;
532521
cout << "Queen: " << setw(10) << (double) (Tresult.queens[WHITE] - Tresult.queens[BLACK]) / 100.0 << setw(15) << (double) (Tresult.queens[WHITE]) / 100.0 << setw(10) << (double) (Tresult.queens[BLACK]) / 100.0 << "\n";
533522
cout << " mobility: " << setw(10) << (double) (SCORE_DEBUG.MOB_QUEEN[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.MOB_QUEEN[BLACK]) / 100.0 << "\n";
534523
cout << " bishop on queen: " << setw(10) << (double) (SCORE_DEBUG.BISHOP_ON_QUEEN[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.BISHOP_ON_QUEEN[BLACK]) / 100.0 << "\n";
535-
// cout << " near enemy king " << setw(10) << (double) (SCORE_DEBUG.XQUEEN_NEAR_KING[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.XQUEEN_NEAR_KING[BLACK]) / 100.0 << "\n";
536524

537525
cout << HEADER;
538526
cout << "King: " << setw(10) << (double) (Tresult.kings[WHITE] - Tresult.kings[BLACK]) / 100.0 << setw(15) << (double) (Tresult.kings[WHITE]) / 100.0 << setw(10) << (double) (Tresult.kings[BLACK]) / 100.0 << "\n";
539527
cout << " distance: " << setw(10) << (double) (SCORE_DEBUG.DISTANCE_KING[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.DISTANCE_KING[BLACK]) / 100.0 << "\n";
540528
cout << " open file: " << setw(10) << (double) (SCORE_DEBUG.END_OPENING_KING[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.END_OPENING_KING[BLACK]) / 100.0 << "\n";
541529
cout << " pawn near: " << setw(10) << (double) (SCORE_DEBUG.PAWN_NEAR_KING[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.PAWN_NEAR_KING[BLACK]) / 100.0 << "\n";
542-
// cout << " pawn storm: " << setw(10) << (double) (SCORE_DEBUG.PAWN_STORM[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.PAWN_STORM[BLACK]) / 100.0 << "\n";
543-
cout << " mobility: " << setw(10) << (double) (SCORE_DEBUG.MOB_KING[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.MOB_KING[BLACK]) / 100.0 << "\n";
544-
// cout << " bishop near king: " << setw(10) << (double) (SCORE_DEBUG.BISHOP_NEAR_KING[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.BISHOP_NEAR_KING[BLACK]) / 100.0 << "\n";
545-
// cout << " queen near king: " << setw(10) << (double) (SCORE_DEBUG.QUEEN_NEAR_KING[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.QUEEN_NEAR_KING[BLACK]) / 100.0 << "\n";
546-
// cout << " knight near king: " << setw(10) << (double) (SCORE_DEBUG.KNIGHT_NEAR_KING[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.KNIGHT_NEAR_KING[BLACK]) / 100.0 << "\n";
547-
// cout << " rook near king: " << setw(10) << (double) (SCORE_DEBUG.ROOK_NEAR_KING[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.ROOK_NEAR_KING[BLACK]) / 100.0 << "\n";
530+
// cout << " mobility: " << setw(10) << (double) (SCORE_DEBUG.MOB_KING[WHITE]) / 100.0 << setw(10) << (double) (SCORE_DEBUG.MOB_KING[BLACK]) / 100.0 << "\n";
548531
cout << endl;
549532
}
550533
#endif

src/GenMoves.cpp

-186
Original file line numberDiff line numberDiff line change
@@ -176,100 +176,6 @@ GenMoves::~GenMoves() {
176176
free(repetitionMap);
177177
}
178178

179-
//bool GenMoves::isPinned(const int side, const uchar position, const uchar piece) {
180-
// u64 king = chessboard[KING_BLACK + side];
181-
// int posKing = BITScanForward(king);
182-
// u64 pow2position = POW2[position];
183-
// if(!(LEFT_RIGHT_RANK_FILE[posKing] & pow2position)) {
184-
// return false;
185-
// }
186-
// int xside = side ^ 1;
187-
// chessboard[piece] &= NOTPOW2[position];
188-
// u64 allpieces = getBitmap<WHITE>() | getBitmap<BLACK>();
189-
// u64 qr = chessboard[QUEEN_BLACK + xside] | chessboard[ROOK_BLACK + xside];
190-
// u64 qb = chessboard[QUEEN_BLACK + xside] | chessboard[BISHOP_BLACK + xside];
191-
// if(king & RANK[position] && RANK[position] & qr) {
192-
// //rank
193-
// for(int n = position + 1; n <= ORIZ_LEFT[position]; n++) {
194-
// if(qr & POW2[n]) {
195-
// chessboard[piece] |= pow2position;
196-
// return true;
197-
// }
198-
// if(allpieces & POW2[n]) {
199-
// break;
200-
// }
201-
// }
202-
// for(int n = position - 1; n >= ORIZ_RIGHT[position]; n--) {
203-
// if(qr & POW2[n]) {
204-
// chessboard[piece] |= pow2position;
205-
// return true;
206-
// }
207-
// if(allpieces & POW2[n]) {
208-
// break;
209-
// }
210-
// }
211-
// } else if(king & FILE_[position] && FILE_[position] & qr) {
212-
// for(int n = posKing + 8; n <= VERT_UPPER[posKing]; n += 8) {
213-
// if(qr & POW2[n]) {
214-
// chessboard[piece] |= pow2position;
215-
// return true;
216-
// }
217-
// if(POW2[n]&allpieces) {
218-
// break;
219-
// }
220-
// }
221-
// for(int n = posKing - 8; n >= VERT_LOWER[posKing]; n -= 8) {
222-
// if(qr & POW2[n]) {
223-
// chessboard[piece] |= pow2position;
224-
// return true;
225-
// }
226-
// if(POW2[n]&allpieces) {
227-
// break;
228-
// }
229-
// }
230-
// } else if(king & LEFT_DIAG[position] && LEFT_DIAG[position] & qb) {
231-
// for(int n = position + 7; n <= LEFT_UPPER[position]; n += 7) {
232-
// if(qb & POW2[n]) {
233-
// chessboard[piece] |= pow2position;
234-
// return true;
235-
// }
236-
// if(allpieces & POW2[n]) {
237-
// break;
238-
// }
239-
// }
240-
// for(int n = position - 7; n >= LEFT_LOWER[position]; n -= 7) {
241-
// if(qb & POW2[n]) {
242-
// chessboard[piece] |= pow2position;
243-
// return true;
244-
// }
245-
// if(allpieces & POW2[n]) {
246-
// break;
247-
// }
248-
// }
249-
// } else if(king & RIGHT_DIAG[position] && RIGHT_DIAG[position] & qb) {
250-
// for(int n = position + 9; n <= RIGHT_UPPER[position]; n += 9) {
251-
// if(qb & POW2[n]) {
252-
// chessboard[piece] |= pow2position;
253-
// return true;
254-
// }
255-
// if(allpieces & POW2[n]) {
256-
// break;
257-
// }
258-
// }
259-
// for(int n = position - 9; n >= RIGHT_LOWER[position]; n -= 9) {
260-
// if(qb & POW2[n]) {
261-
// chessboard[piece] |= pow2position;
262-
// return true;
263-
// }
264-
// if(allpieces & POW2[n]) {
265-
// break;
266-
// }
267-
// }
268-
// }
269-
// chessboard[piece] |= pow2position;
270-
// return false;
271-
//}
272-
273179
void GenMoves::performCastle(const int side, const uchar type) {
274180
ASSERT_RANGE(side, 0, 1);
275181
if (side == WHITE) {
@@ -399,70 +305,6 @@ bool GenMoves::performKingShiftCapture(int side, const u64 enemies) {
399305
return false;
400306
}
401307

402-
403-
//template<int side>
404-
//bool GenMoves::attackSquare(const uchar position, u64 allpieces) {
405-
// ASSERT_RANGE(position, 0, 63);
406-
// ASSERT_RANGE(side, 0, 1);
407-
// if (KNIGHT_MASK[position] & chessboard[KNIGHT_BLACK + (side ^ 1)]) {
408-
// return true;
409-
// }
410-
// if (NEAR_MASK1[position] & chessboard[KING_BLACK + (side ^ 1)]) {
411-
// return true;
412-
// }
413-
// //enpassant
414-
// if (PAWN_FORK_MASK[side][position] & chessboard[PAWN_BLACK + (side ^ 1)]) {
415-
// return true;
416-
// }
417-
// allpieces |= POW2[position];
418-
// u64 enemies = chessboard[QUEEN_BLACK + (side ^ 1)] | chessboard[BISHOP_BLACK + (side ^ 1)];
419-
// if (LEFT_RIGHT_DIAG[position] & enemies) {
420-
// ///LEFT
421-
// u64 q = allpieces & MASK_BIT_UNSET_LEFT_UP[position];
422-
// if (q && enemies & POW2[BITScanReverse(q)]) {
423-
// return true;
424-
// }
425-
// q = allpieces & MASK_BIT_UNSET_LEFT_DOWN[position];
426-
// if (q && enemies & POW2[BITScanForward(q)]) {
427-
// return true;
428-
// }
429-
// ///RIGHT
430-
// q = allpieces & MASK_BIT_UNSET_RIGHT_UP[position];
431-
// if (q && enemies & POW2[BITScanReverse(q)]) {
432-
// return true;
433-
// }
434-
// q = allpieces & MASK_BIT_UNSET_RIGHT_DOWN[position];
435-
// if (q && enemies & POW2[BITScanForward(q)]) {
436-
// return true;
437-
// }
438-
// }
439-
// ///
440-
// u64 x = allpieces & FILE_[position];
441-
// enemies = chessboard[QUEEN_BLACK + (side ^ 1)] | chessboard[ROOK_BLACK + (side ^ 1)];
442-
// if (x & enemies) {
443-
// u64 q = x & MASK_BIT_UNSET_UP[position];
444-
// if (q && enemies & POW2[BITScanReverse(q)]) {
445-
// return true;
446-
// }
447-
// q = x & MASK_BIT_UNSET_DOWN[position];
448-
// if (q && enemies & POW2[BITScanForward(q)]) {
449-
// return true;
450-
// }
451-
// }
452-
// x = allpieces & RANK[position];
453-
// if (x & enemies) {
454-
// u64 q = x & MASK_BIT_UNSET_RIGHT[position];
455-
// if (q && enemies & POW2[BITScanForward(q)]) {
456-
// return true;
457-
// }
458-
// q = x & MASK_BIT_UNSET_LEFT[position];
459-
// if (q && enemies & POW2[BITScanReverse(q)]) {
460-
// return true;
461-
// }
462-
// }
463-
// return false;
464-
//}
465-
466308
void GenMoves::unPerformCastle(const int side, const uchar type) {
467309
ASSERT_RANGE(side, 0, 1);
468310
if (side == WHITE) {
@@ -801,34 +643,6 @@ bool GenMoves::generatePuzzle(const string type) {
801643
}
802644
}
803645

804-
/* if (type == "KRKP") {
805-
pieces.push_back(ROOK_BLACK);
806-
pieces.push_back(PAWN_WHITE);
807-
} else if (type == "KQKP") {
808-
pieces.push_back(QUEEN_BLACK);
809-
pieces.push_back(PAWN_WHITE);
810-
811-
} else if (type == "KBBKN") {
812-
pieces.push_back(BISHOP_BLACK);
813-
pieces.push_back(BISHOP_BLACK);
814-
pieces.push_back(KNIGHT_WHITE);
815-
816-
} else if (type == "KQKR") {
817-
pieces.push_back(QUEEN_BLACK);
818-
pieces.push_back(ROOK_WHITE);
819-
820-
} else if (type == "KRKB") {
821-
pieces.push_back(ROOK_BLACK);
822-
pieces.push_back(BISHOP_WHITE);
823-
824-
} else if (type == "KRKN") {
825-
pieces.push_back(ROOK_BLACK);
826-
pieces.push_back(KNIGHT_WHITE);
827-
828-
} else {
829-
cout << "error type";
830-
return;
831-
}*/
832646
writeRandomFen(pieces);
833647
}
834648
return true;

src/GenMoves.h

+1-7
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@
2020

2121
#include "ChessBoard.h"
2222
#include "util/Bitboard.h"
23-
//#include "Endgame.h"
2423
#include <vector>
2524

26-
class GenMoves : public ChessBoard /* add Endgame and remove ChessBoard TODO*/ {
25+
class GenMoves : public ChessBoard {
2726

2827
public:
2928
static const int MAX_MOVE = 130;
@@ -256,7 +255,6 @@ class GenMoves : public ChessBoard /* add Endgame and remove ChessBoard TODO*/ {
256255

257256
bool makemove(_Tmove *move, bool rep = true, bool = false);
258257

259-
//bool isPinned(const int side, const uchar Position, const uchar piece);
260258
void incListId() {
261259
listId++;
262260
#ifdef DEBUG_MODE
@@ -545,12 +543,8 @@ class GenMoves : public ChessBoard /* add Endgame and remove ChessBoard TODO*/ {
545543
};
546544
}
547545

548-
// int performRankFileCaptureCount(const int, const u64 enemies, const u64 allpieces);
549-
550546
int performRankFileCaptureAndShiftCount(const int position, const u64 enemies, const u64 allpieces);
551547

552-
// int performRankFileShiftCount(const int piece, const u64 allpieces);
553-
554548
void popStackMove() {
555549
ASSERT(repetitionMapCount > 0);
556550
if (--repetitionMapCount && repetitionMap[repetitionMapCount - 1] == 0) {

src/IterativeDeeping.cpp

+1-6
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ void IterativeDeeping::run() {
111111
int mateIn = INT_MAX;
112112
string pvv;
113113
_Tmove resultMove;
114-
while (searchManager.getRunning(0) /*&& mateIn == INT_MAX && mply < maxDepth*/) {
115-
// mateIn = INT_MAX;
114+
while (searchManager.getRunning(0)) {
116115
totMoves = 0;
117116
++mply;
118117
searchManager.init();
@@ -121,10 +120,6 @@ void IterativeDeeping::run() {
121120

122121
searchManager.setRunningThread(1);
123122
searchManager.setRunning(1);
124-
// if (mply == 2) {
125-
// searchManager.setRunningAll(1);
126-
// }
127-
128123
if (!searchManager.getRes(resultMove, ponderMove, pvv, &mateIn)) {
129124
debug("IterativeDeeping cmove == 0, exit");
130125
break;

src/IterativeDeeping.h

-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ class IterativeDeeping : public Thread<IterativeDeeping> {
7676

7777
#ifdef DEBUG_MODE
7878
//for statistics
79-
8079
atomic_int checkSmp2;
8180
#endif
8281
SearchManager &searchManager = Singleton<SearchManager>::getInstance();

src/Search.cpp

-7
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,6 @@ int Search::quiescence(int alpha, int beta, const char promotionPiece, int N_PIE
159159
if (!(numMovesq++ & 1023)) {
160160
setRunning(checkTime());
161161
}
162-
// int is_incheck_side = inCheck<side>();
163-
// if (!is_incheck_side) {
164-
// int score = lazyEval<side>();
165-
// if (score + FUTIL_MARGIN < alpha)
166-
// return score;
167-
// }
168162

169163
int score = getScore(side, N_PIECE, alpha, beta, false);
170164
if (score >= beta) {
@@ -395,7 +389,6 @@ int Search::search(int depth, int alpha, int beta, _TpvLine *pline, int N_PIECE,
395389
}
396390
ASSERT_RANGE(res, -_INFINITE, _INFINITE);
397391
ASSERT(mainDepth >= depth);
398-
// cout << side << " " << (*mateIn) << " " << res << "\n";
399392
return res;
400393
}
401394
}

src/SearchManager.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
#include "SearchManager.h"
2020

21-
2221
SearchManager::SearchManager() {
2322
SET(checkSmp1, 0);
2423

@@ -44,7 +43,6 @@ SearchManager::SearchManager() {
4443
};
4544
}
4645
}
47-
4846
}
4947

5048
void SearchManager::search(const int mply) {
@@ -209,19 +207,19 @@ void SearchManager::clearAge() {
209207
}
210208

211209
int SearchManager::getForceCheck() {
212-
return getThread(0).getForceCheck();// static variable
210+
return getThread(0).getForceCheck();
213211
}
214212

215213
u64 SearchManager::getZobristKey(int id) {
216214
return getThread(id).getZobristKey();
217215
}
218216

219217
void SearchManager::setForceCheck(bool a) {
220-
getThread(0).setForceCheck(a); // static variable
218+
getThread(0).setForceCheck(a);
221219
}
222220

223221
void SearchManager::setRunningThread(bool r) {
224-
getThread(0).setRunningThread(r);// static variable
222+
getThread(0).setRunningThread(r);
225223
}
226224

227225
void SearchManager::setRunning(int i) {

0 commit comments

Comments
 (0)