1/3/2023 0 Comments Goban go board![]() ![]() ![]() Incidentally, try to avoid taking references to Piece objects, since this stops them being destroyed in a timely fashion. Returns the position of this piece, as a two-character string. Similar to the notes method on the board class, this provides a private area for callbacks to scribble on. Returns "b" for a black piece and "w" for a white. Here are the methods which can be called on a Games::Goban::Piece object, representing a piece on the board. (Note that 'i' is never skipped when producing SGF output.) Games::Goban::Piece methods This method returns true if the 'skip_i' argument to the constructor was true and the 'i' coordinant should be skipped. If the phrase "positional superko" means anything to you, you want to use this method. Provides a unique hash of the board position. Notes returns a hash reference which can be used by a callback to store local state about the board. Referee Any subroutine, default: sub += 5 Skip_i Truth value whether 'i' should be skipped false by default The options and their legal values (* marks defaults): size Any integer between 5 and 26, default: 19 METHODS new(%options) Ĭreates and initializes a new goban. Theoretically, it can be used to handle many of the other games which can use Smart Game Format (SGF) but I want to keep it reasonably restricted in order to keep it simple. This is a generic module for handling goban-based board games. Games::Goban - Board for playing go, renju, othello, etc. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |