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