Packagecom.godpaper.as3.model
Classpublic class HistoryTableModel
InheritanceHistoryTableModel Inheritance Object

A singleton model hold chess board history table information. History heuristics are in some way an extension of killer moves. With killer moves, the problem is that we forget them again immediately. You can think of killer moves as some kind of short-term memory, while history heuristics is long-term memory. In history heuristics we keep track of all good moves. For a game like chess or checkers, we take a double-indexed counter array, history[][], which we index with the from and to squares of the move. Every time we find a move from a-to-b to be good, we increment the value of history[a][b]. When we generate the movelist, we can then order it according to the values of the history array. You might want to experiment with the history heuristic too, e.g. you could decide only to increment the counter for moves which caused a fail-high (after all, in all other nodes you will have to search all moves anyway, so it doesn't matter as much in which order you search them).

See also

http://www.fierz.ch/strategy2.htm


Public Properties
 PropertyDefined By
  redBishop : ZobristHashTable
HistoryTableModel
  redCannon : ZobristHashTable
HistoryTableModel
  redKnight : ZobristHashTable
HistoryTableModel
  redMarshal : ZobristHashTable
HistoryTableModel
  redOffical : ZobristHashTable
HistoryTableModel
  redPawn : ZobristHashTable
HistoryTableModel
  redRook : ZobristHashTable
HistoryTableModel
Public Methods
 MethodDefined By
  
HistoryTableModel(access:Private)
HistoryTableModel
  
[static]
HistoryTableModel
Property Detail
redBishopproperty
redBishop:ZobristHashTable


Implementation
    public function get redBishop():ZobristHashTable
    public function set redBishop(value:ZobristHashTable):void
redCannonproperty 
redCannon:ZobristHashTable


Implementation
    public function get redCannon():ZobristHashTable
    public function set redCannon(value:ZobristHashTable):void
redKnightproperty 
redKnight:ZobristHashTable


Implementation
    public function get redKnight():ZobristHashTable
    public function set redKnight(value:ZobristHashTable):void
redMarshalproperty 
redMarshal:ZobristHashTable


Implementation
    public function get redMarshal():ZobristHashTable
    public function set redMarshal(value:ZobristHashTable):void
redOfficalproperty 
redOffical:ZobristHashTable


Implementation
    public function get redOffical():ZobristHashTable
    public function set redOffical(value:ZobristHashTable):void
redPawnproperty 
redPawn:ZobristHashTable


Implementation
    public function get redPawn():ZobristHashTable
    public function set redPawn(value:ZobristHashTable):void
redRookproperty 
redRook:ZobristHashTable


Implementation
    public function get redRook():ZobristHashTable
    public function set redRook(value:ZobristHashTable):void
Constructor Detail
HistoryTableModel()Constructor
public function HistoryTableModel(access:Private)



Parameters
access:Private
Method Detail
getInstance()method
public static function getInstance():HistoryTableModel

Returns
HistoryTableModel — the singleton instance of HistoryTableModel