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

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

See also

http://www.fierz.ch/strategy4.htm
http://chess.uoknor.edu
and games: Second International Conference, CG 2000, Hamamatsu ...By T. Anthony Marsland, Ian Frank
2004CCC.pdf

Public Properties

| Property | Defined By
--- | --- | ---
|  | expansion : Graph [read-only] When an opening book is created,it contains only the start node. Expansion is done with three steps. 1.Choose a leaf node and add all successors to the book. 2.Calculate the values of the new successors. 3.Propagate the values. | OpeningBookModel
|  | interiorNode : GraphNode | OpeningBookModel
|  | leafNode : GraphNode | OpeningBookModel
|  | startNode : GraphNode | OpeningBookModel

Public Methods

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

Property Detail

expansion | property

`expansion:Graph` [read-only]

When an opening book is created,it contains only the start node. Expansion is done with three steps. 1.Choose a leaf node and add all successors to the book. 2.Calculate the values of the new successors. 3.Propagate the values.

Implementation
`public function get expansion():Graph`

interiorNode | property |

`interiorNode:GraphNode`

Implementation
`public function get interiorNode():GraphNode`
`public function set interiorNode(value:GraphNode):void`

leafNode | property |

`leafNode:GraphNode`

Implementation
`public function get leafNode():GraphNode`
`public function set leafNode(value:GraphNode):void`

startNode | property |

`startNode:GraphNode`

Implementation
`public function get startNode():GraphNode`
`public function set startNode(value:GraphNode):void`
Constructor Detail

OpeningBookModel | () | Constructor

`public function OpeningBookModel(access:Private)`

Parameters

| `access:Private`

Method Detail

getInstance | () | method

`public static function getInstance():OpeningBookModel`

Returns

| `OpeningBookModel` — the singleton instance of OpeningBookModel

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