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

Package | com.godpaper.as3.model.vos
Class | public class ZobristKeyVO
Inheritance | ZobristKeyVO Object

The zobrist key value object obtain the keys(color,type,position). Zobrist hashing is a technique to transform a board position of arbitrary size into a number of a set length, with an equal distribution over all possible numbers, invented by Albert Zobrist.

See also

http://chessprogramming.wikispaces.com/Zobrist+Hashing

Public Properties

| Property | Defined By
--- | --- | ---
|  | color : Array2 | ZobristKeyVO
|  | position : Array2 | ZobristKeyVO
|  | type : Array2 | ZobristKeyVO

Public Methods

| Method | Defined By
--- | --- | ---
|  | ZobristKeyVO() | ZobristKeyVO
|  | dump():String Prints out all elements (for debug/demo purposes). | ZobristKeyVO

Property Detail

color | property

`public var color:Array2`

position | property |

`public var position:Array2`

type | property |

`public var type:Array2`

Constructor Detail

ZobristKeyVO | () | Constructor

`public function ZobristKeyVO()`

Method Detail

dump | () | method

`public function dump():String`

Prints out all elements (for debug/demo purposes).

Returns

| `String` — A human-readable representation of the structure.

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