| 409 | | void initialize(); |
|---|
| 410 | | void finalize(); |
|---|
| | 409 | virtual void initialize(); |
|---|
| | 410 | virtual void finalize(); |
|---|
| | 411 | virtual void addB(char x, char y); |
|---|
| | 412 | virtual void removeB(char x, char y); |
|---|
| | 413 | virtual void addW(char x, char y); |
|---|
| | 414 | virtual void removeW(char x, char y); |
|---|
| | 415 | virtual void bppush(); |
|---|
| | 416 | virtual void bppop(); |
|---|
| | 417 | virtual std::pair<hashtype,int> cHC(); // returns current hash code and corresp. index |
|---|
| | 418 | hashtype* currentHashCode; // array of 8 hashtype values (to automatically symmetrize hash codes) |
|---|
| | 419 | std::stack<std::pair<hashtype*,int> >* branchpoints; |
|---|
| | 420 | int numStones; |
|---|
| | 421 | }; |
|---|
| | 422 | |
|---|
| | 423 | class HashInstanceCO : public HashInstance { |
|---|
| | 424 | public: |
|---|
| | 425 | HashInstanceCO(char X, char Y, char SIZEX, char SIZEY, int BOARDSIZE); |
|---|
| | 426 | virtual ~HashInstanceCO(); |
|---|
| | 427 | |
|---|
| 415 | | void bppush(); |
|---|
| 416 | | void bppop(); |
|---|
| 417 | | std::pair<hashtype,int> cHC(); // returns min(currentHashCode) and corresp. index |
|---|
| 418 | | hashtype* currentHashCode; // array of 8 hashtype values (to automatically symmetrize hash codes) |
|---|
| 419 | | std::stack<std::pair<hashtype*,int> >* branchpoints; |
|---|
| 420 | | int numStones; |
|---|
| | 432 | }; |
|---|
| | 433 | |
|---|
| | 434 | class HashInstanceCTR : public HashInstance { |
|---|
| | 435 | public: |
|---|
| | 436 | HashInstanceCTR(char X, char Y, char SIZEX, char SIZEY, int BOARDSIZE); |
|---|
| | 437 | virtual ~HashInstanceCTR(); |
|---|
| | 438 | |
|---|
| | 439 | void addB(char x, char y); |
|---|
| | 440 | void removeB(char x, char y); |
|---|
| | 441 | void addW(char x, char y); |
|---|
| | 442 | void removeW(char x, char y); |
|---|