GODPAPER | All Packages | All Classes | Index | Frames No Frames |
HistoryTableModel

Package | com.godpaper.as3.model
Class | public class HistoryTableModel
Inheritance | HistoryTableModel 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

| Property | Defined By
--- | --- | ---
|  | redBishop : ZobristHashTable | HistoryTableModel
|  | redCannon : ZobristHashTable | HistoryTableModel
|  | redKnight : ZobristHashTable | HistoryTableModel
|  | redMarshal : ZobristHashTable | HistoryTableModel
|  | redOffical : ZobristHashTable | HistoryTableModel
|  | redPawn : ZobristHashTable | HistoryTableModel
|  | redRook : ZobristHashTable | HistoryTableModel

Public Methods

| Method | Defined By
--- | --- | ---
|  | HistoryTableModel(access:Private) | HistoryTableModel
|  | getInstance():HistoryTableModel [static] | HistoryTableModel

Property Detail

redBishop | property

`redBishop:ZobristHashTable`

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

redCannon | property |

`redCannon:ZobristHashTable`

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

redKnight | property |

`redKnight:ZobristHashTable`

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

redMarshal | property |

`redMarshal:ZobristHashTable`

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

redOffical | property |

`redOffical:ZobristHashTable`

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

redPawn | property |

`redPawn:ZobristHashTable`

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

redRook | property |

`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

Thu Jan 16 2014, 01:11 PM +08:00