searches return a result class instead of an int
This commit is contained in:
1 parent
22a9a692c5
commit
abe07eb844
2 files changed
+38
-26
No files matched your search
@@ -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] = {
|
||||
|
||||
Reference in new issue
Block a user