Crate gomoku_core [−] [src]
Modules
board |
Main module, contains basics |
captures_on_alignement |
Returns possible positions for captures for all |
Structs
Alignment |
Represent the backward bound,
the number of stones of the same color before |
Axes |
Represent all the 4 axes. |
Directions |
Represent all the 8 directions.
The only way to create a Direction is from a |
Enums
BoundState |
Represent the status of an alignment bound. |
Color |
Represent stone possible colors (Black and White). |
Constants
BOT |
Bottom direction. |
BOT_LEFT |
Bottom combined with left direction. |
BOT_RIGHT |
Bottom combined with right direction. |
DIAGONAL_DOWN |
Diagonal down axis. |
DIAGONAL_UP |
Diagonal up axis. |
GRID_LEN |
Represent the |
HORIZONTAL |
Horizontal axis. |
LEFT |
Left direction. |
RIGHT |
Right direction. |
TOP |
Top direction. |
TOP_LEFT |
Top combined with left direction. |
TOP_RIGHT |
Top combined with right direction. |
VERTICAL |
Vertical axis. |
Functions
get_alignments |
Returns alignments at |
get_captures |
Get all possible captures at |
get_free_threes |
Returns the free-threes at |
Type Definitions
Axis |
Type used to represent an axis. |
Direction |
Used to represent 8 directions for more clarity. |
Grid |
Represent the Gomoku |
Position |
Represent a position on the |
Tile |
Represent a |