libkombilo
0.7
|
Hashing for corner patterns. More...
#include <algos.h>
Public Member Functions | |
Algo_hash_corner (int bsize, SnapshotVector DATA, string OS_DATA_NAME, int SIZE=7, int MAXNUMSTONES=20) | |
std::pair< hashtype, std::vector< int > > | compute_hashkey (PatternList &pl, int CS) |
Data Fields | |
int | size |
size of the region used for hashing (the region is a square with side-length size , located at a corner of the board) |
Hashing for corner patterns.
pair< hashtype, vector< int > > Algo_hash_corner::compute_hashkey | ( | PatternList & | pl, |
int | CS | ||
) | [virtual] |
Given a PatternList and a choice of colorSwitch (true/false), compute the hashCodes that we have to look for in the db.
The method returns a vector of pairs, consisting of a hashCode (for one of the corners covered by the pattern) and a vector of possible flips which should be used to produce a Candidate.
Reimplemented from Algo_hash.