ThirdRep Class Reference

Checking third repetitions. More...

#include <hash.h>

Inheritance diagram for ThirdRep:

List of all members.

Public Member Functions

void print ()
void update (u64 key, uint playerIndex)
 Updates number of repetitions (+1).
bool isThirdRep (u64 key, uint playerIndex)
 Checks whether position is third repetition.

Protected Attributes

u64 playerSignature_ [2]


Detailed Description

Checking third repetitions.

Stores key(position, playerIndex) ---> number of position repetitions so far


Member Function Documentation

void ThirdRep::update ( u64  key,
uint  playerIndex 
)

Updates number of repetitions (+1).

Number of repetitions for giben key,playerIndex must be < 2 (asserts)!


The documentation for this class was generated from the following files:

Generated on Thu Aug 6 23:29:10 2009 for akimot by  doxygen 1.5.7.1