Class Index | File Index

Classes


Class Rec

Represents Game Record Object
Defined in: rec02.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Rec()
Game Record Object
Field Summary
Field Attributes Field Name and Description
 
number of moves
 
names of players
 
ptr
pointer for replay
 
game record
 
ro
number of lines on board
 
score string of the game
Method Summary
Method Attributes Method Name and Description
 
eod()
End of data
 
Generate SGF File Name
 
move()
Add a move to record
 
Replay - get next move from record
 
Rewind
 
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

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Mar 31 2014 14:29:55 GMT+0900 (JST)