Class Rec
Represents Game Record Object
Defined in: rec02.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Rec()
Game Record Object
|
Field Attributes | Field Name and Description |
---|---|
number of moves
|
|
names of players
|
|
pointer for replay
|
|
game record
|
|
number of lines on board
|
|
score string of the game
|
Method Attributes | Method Name and Description |
---|---|
eod()
End of data
|
|
Generate SGF File Name
|
|
move()
Add a move to record
|
|
replay()
Replay - get next move from record
|
|
rewind()
Rewind
|
|
toSGF()
Convert to SGF
|
Class Detail
Rec()
Game Record Object
var rec1 = new Rec(sgfString); // src = sgfString var rec2 = new Rec(19); // ro = 19
- Since:
- 0.1
Field Detail
{Number}
numMove
number of moves
{String[]}
players
names of players
{Number}
ptr
pointer for replay
{Entry[]}
record
game record
{Number}
ro
number of lines on board
{String}
score
score string of the game
Method Detail
{Boolean}
eod()
End of data
- Since:
- 0.1
- Returns:
- {Boolean} true if end of data
{String}
genSGFname()
Generate SGF File Name
- Since:
- 0.1
- Returns:
- {String} SGF file name
move()
Add a move to record
move(col, row); move(PASS); move(new Move(col, row));
- Since:
- 0.1
{Move}
replay()
Replay - get next move from record
- Since:
- 0.1
- Returns:
- {Move} next move
rewind()
Rewind
- Since:
- 0.1
{String}
toSGF()
Convert to SGF
- Since:
- 0.1
- Returns:
- {String} SGF string