Skip to content

Commit

Permalink
stash
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxvanyang committed Jun 24, 2024
1 parent 4d4f17b commit aa43c91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mygo/game/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def new(cls, board_size: int = 19, komi: float = 5.5) -> "Game":
def from_pysgf(cls, node: SGFNode | SGF) -> "Game":
"""Return a new game of Go from a pysgf SGFNode.
Only placements of the root node are parsed, and noly support square board game.
Only placements of the root node are parsed, and only support square board game.
Args:
node: A pysgf SGFNode or a SGF instance.
Expand Down
6 changes: 5 additions & 1 deletion src/mygo/game/move.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ def is_play(self) -> bool:

@abstractmethod
def to_pysgf(self) -> pysgf.Move:
"""Return an equivalent pysgf.Move instance."""
"""Return an equivalent pysgf.Move instance.
Raise:
TypeError: The move is a resign move, which pysgf doesn't support.
"""

def sgf(self, board_size: int = 19) -> str:
"""Return a string of the move's coordinates.
Expand Down

0 comments on commit aa43c91

Please sign in to comment.