next up previous contents
Next: Focus Up: PuBGo+ Draft Hackers Previous: GoGui

HashView

class HashView:public BoardView

It maintains a hashcode that depends on the board state (and the focus state). This can be used to enter a Knot of the search tree into the HashTable using the current Hashcode.

At the moment there is a single

class HashTable
{
    // snip.
}

It's use is pretty well hidden from the user so I will not go into details. It is used within the GoMoveFocus to look for duplicate board states. One thing of interest is the use of focus hash codes which stop the search tree merging the search tree unless the focus is the same (essential for the PN stuff to make any sense).



P J Leonard
Tue Oct 1 15:25:19 BST 1996