Scid
4.7.0
|
Defines the classes used to search for positions. More...
#include "common.h"
#include "fastgame.h"
#include "matsig.h"
#include "position.h"
#include "scidbase.h"
#include "stored.h"
#include <algorithm>
#include <memory>
Go to the source code of this file.
Classes | |
class | SearchPos |
Search for an exact position (same material in the same squares). More... | |
Functions | |
template<typename TMaterialCount > | |
bool | less_mat (const TMaterialCount &a, matSigT b, bool promo, bool upromo) |
Return true if there is a piece's count in a which is less than its counterpart in b. More... | |
Defines the classes used to search for positions.
Definition in file searchpos.h.
bool less_mat | ( | const TMaterialCount & | a, |
matSigT | b, | ||
bool | promo, | ||
bool | upromo | ||
) |
Return true if there is a piece's count in a which is less than its counterpart in b.
promo | pawns' difference is considered when comparing queen. |
upromo | minor pieces' count is not compared. |
Definition at line 40 of file searchpos.h.