コード例 #1
0
 /// <summary>
 /// Marks a group as dead for the purposes of scoring. This method has no effect if
 /// the board is not in scoring mode (see the IsScoring property).
 /// </summary>
 /// <param name="n">The coordinates of the position of a stone in the group.</param>
 public void SetDeadGroup(Point n)
 {
     SetDeadGroup(n.x, n.y);
 }
コード例 #2
0
 /// <summary>
 /// Gets the liberty count of the group containing the board content at
 /// the specified point.
 /// </summary>
 /// <param name="n">The coordinates of the position.</param>
 /// <returns>The number of liberties.</returns>
 public int GetLiberties(Point n)
 {
     return(GetLiberties(n.x, n.y));
 }
コード例 #3
0
 /// <summary>
 /// Sets the board content at the specified point, this is not considered a
 /// game move, but rather a setup move.
 /// </summary>
 /// <param name="p">The coordinates of the position.</param>
 /// <param name="content">The new content at the position.</param>
 public void SetContentAt(Point p, Content content)
 {
     SetContentAt(p.x, p.y, content);
 }
コード例 #4
0
 /// <summary>
 /// Gets the group including the board content at the specified position.
 /// </summary>
 /// <param name="n">The coordinates of the position.</param>
 /// <returns>A group object containing a list of points.</returns>
 public Group GetGroupAt(Point n)
 {
     return(GetGroupAt(n.x, n.y));
 }
コード例 #5
0
 /// <summary>
 /// Gets the board content at the specified point.
 /// </summary>
 /// <param name="n">The coordinates of the position.</param>
 /// <returns></returns>
 public Content GetContentAt(Point n)
 {
     return(GetContentAt(n.x, n.y));
 }