Expand description
takparse
is a library which provides helpful types and functions
for parsing objects related to the abstract strategy board game Tak.
Structs
- A helper struct for iterating over the drop counts encoded in a
Pattern
. - Struct which represents a valid move in Tak.
- An encoded version of the drop counts.
- A PTN file which is used to document a game of Tak.
- A location on the board.
- A stack is one or more pieces on top of each other. Yes, even a single flat on its own is considered a stack.
- PTN Tag which is used to add additional information to a PTN file.
- Parsed TPS struct which has a one-to-one mapping with a TPS string.
Enums
- Enum for the player and piece color.
- Enum representing a direction to move on the board.
- An entry in the TPS for a board position.
- The result of a game of Tak.
- Container enum for the two types of possible moves in Tak.
- Error returned when something goes wrong during the parsing of a
Direction
. - Error returned when something goes wrong during the parsing of a
GameResult
. - Error returned when something goes wrong during the parsing of a
Move
. - Error returned when something goes wrong during the parsing of a
Pattern
. - Error returned when something goes wrong during the parsing of a
Piece
. - Error returned when something goes wrong during the parsing of a
Ptn
. - Error returned when something goes wrong during the parsing of a
Square
. - Error returned when something goes wrong during the parsing of a
Tag
. - Error returned when something goes wrong during the parsing of a
Tps
string. - Enum representing the piece type.
- The reason for a win in Tak.