libkombilo  0.7
Public Member Functions | Data Fields
Algo_hash_corner Class Reference

Hashing for corner patterns. More...

#include <algos.h>

Inheritance diagram for Algo_hash_corner:
Algo_hash Algorithm

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)

Detailed Description

Hashing for corner patterns.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables