searches return a result class instead of an int

This commit is contained in:
rektdie committed 2024-09-29 13:03:59 +02:00
1 parent 22a9a692c5
commit abe07eb844
2 files changed
+38 -26

No files matched your search

+17
View File
@@ -1,6 +1,23 @@
#pragma once
#include "board.h"
class SearchResults {
public:
int score = 0;
Move bestMove = Move();
SearchResults(){}
SearchResults(int pScore, Move pMove) {
score = pScore;
bestMove = pMove;
}
SearchResults(int pScore) {
score = pScore;
}
};
void SearchPosition(Board &board, int depth);
constexpr int moveScoreTable[6][6] = {