프로퍼티 | 타입 | 설명 | |
---|---|---|---|
PassMove | Point | ||
SuperKoComparer | SuperKoComparer |
메소드 | 설명 | |
---|---|---|
Game ( Go.GameInfo gi ) : System |
Constructs a root game object based on a GameInfo object.
|
|
Game ( Go.SGFGameTree sgfGameTree ) : System |
Constructs a root game object, along with a complete game tree from the specified SGFGameTree object.
|
|
MakeMove ( Point n ) : |
Makes a move and returns a new Game object representing the state after the move. The move is carried out whether it is legal or illegal (for example, an overwrite move). The color of the move is determined by the Turn property. The legality of the move may be determined by examining the IsLegal property of the returned object.
|
|
MakeMove ( Point n, bool &legal ) : |
Makes a move and returns a new Game object representing the state after the move. The move is carried out whether it is legal or illegal (for example, an overwrite move). The color of the move is determined by the Turn property. If the move was illegal (suicide, violating super-ko, or an overwrite), the method sets the legal parameter to false, otherwise it is set to true.
|
|
MakeMove ( int x, int y ) : |
Makes a move and returns a new Game object representing the state after the move. The move is carried out whether it is legal or illegal (for example, an overwrite move). The color of the move is determined by the Turn property. The legality of the move may be determined by examining the IsLegal property of the returned object.
|
|
MakeMove ( int x, int y, bool &legal ) : |
Makes a move and returns a new Game object representing the state after the move. The move is carried out whether it is legal or illegal (for example, an overwrite move). The color of the move is determined by the Turn property. If the move was illegal (suicide, violating super-ko, or an overwrite), the method sets the legal parameter to false, otherwise it is set to true.
|
|
Pass ( ) : |
Makes a 'pass' move and returns a new Game object representing the state after the move. The color of the move is determined by the Turn property.
|
|
SerializeFromSGF ( string path ) : List |
Parses an SGF game file and creates a list of games.
|
|
SerializeToSGF ( TextWriter s ) : string |
Converts the game tree into SGF format.
|
|
SetupMove ( Point p, Content c ) : void |
Adds a stone to the board as a setup move.
|
|
SetupMove ( Point p1, Point p2, Content c ) : void |
Adds stones to the board in a rectangular area.
|
|
SetupMove ( int x, int y, Content c ) : void |
Adds a stone to the board as a setup move.
|
|
SetupMove ( int x1, int y1, int x2, int y2, Content c ) : void |
Adds stones to the board in a rectangular area.
|
메소드 | 설명 | |
---|---|---|
Game ( |
Constructs a Game object from a Board object and a turn to play.
|
|
Game ( |
Constructs a Game object from an existing Game object. This constructor is used when making game moves.
|
|
InternalMakeMove ( int x, int y ) : bool |
Perform the necessary operations for a move, check liberties, capture, etc. Also updates the Move and IsLegal properties.
|
메소드 | 설명 | |
---|---|---|
CreateGameTree ( Go.SGFGameTree root, |
||
Game ( ) : System | ||
HandleBoardSize ( Go.SGFProperty p ) : |
||
HandleHandicap ( Go.SGFProperty p ) : |
||
HandleKomi ( Go.SGFProperty p ) : |
||
HandleMove ( Go.SGFProperty p ) : |
||
HandlePlayerTurn ( Go.SGFProperty p ) : |
||
HandleSetup ( Go.SGFProperty p ) : |
||
InitializeFromGameInfo ( ) : void | ||
RemoveProperty ( string name ) : void | ||
SerializeMove ( TextWriter s, Point pnt ) : void | ||
SerializeSGFProperties ( TextWriter s ) : void | ||
SerializeToSGFInternal ( TextWriter s ) : void | ||
SetHandicap ( int handicap ) : void | ||
SetProperty ( string name, string value, bool create ) : void |
protected Game ( |
||
bs | The source Board. | |
turn | Content | The color of the player whose turn it is to play. |
리턴 | System |
protected Game ( |
||
fromGame | The Game object before the move. | |
리턴 | System |
public Game ( Go.SGFGameTree sgfGameTree ) : System | ||
sgfGameTree | Go.SGFGameTree | The SGF game tree object. |
리턴 | System |
protected InternalMakeMove ( int x, int y ) : bool | ||
x | int | The X coordinate of the move. |
y | int | The Y coordinate of the move. |
리턴 | bool |
public MakeMove ( Point n, bool &legal ) : |
||
n | Point | The coordinates of the move. |
legal | bool | Set to true if the move was legal, false otherwise. |
리턴 |
public MakeMove ( int x, int y ) : |
||
x | int | The X coordinate of the move. |
y | int | The Y coordinate of the move. |
리턴 |
public MakeMove ( int x, int y, bool &legal ) : |
||
x | int | The X coordinate of the move. |
y | int | The Y coordinate of the move. |
legal | bool | Set to true if the move was legal, false otherwise. |
리턴 |
public static SerializeFromSGF ( string path ) : List |
||
path | string | The path to the SGF file. |
리턴 | List |
public SerializeToSGF ( TextWriter s ) : string | ||
s | TextWriter | A TextWriter object that will receive the output. /// If null, the output is returned as a string. |
리턴 | string |
public SetupMove ( Point p, Content c ) : void | ||
p | Point | The coordinates of the setup move. |
c | Content | The color of the stone to add (or empty to clear). |
리턴 | void |
public SetupMove ( Point p1, Point p2, Content c ) : void | ||
p1 | Point | The top left coordinates of the rectangle. |
p2 | Point | The bottom right coordinates of the rectangle. |
c | Content | The color of the stone to add (or empty to clear). |
리턴 | void |
public SetupMove ( int x, int y, Content c ) : void | ||
x | int | The X coordinate of the setup move. |
y | int | The Y coordinate of the setup move. |
c | Content | The color of the stone to add (or empty to clear). |
리턴 | void |
public SetupMove ( int x1, int y1, int x2, int y2, Content c ) : void | ||
x1 | int | The left coordinate of the rectangle. |
y1 | int | The top coordinate of the rectangle. |
x2 | int | The right coordinate of the rectangle. |
y2 | int | The bottom coordinate of the rectangle. |
c | Content | The color of the stone to add (or empty to clear). |
리턴 | void |