8#ifndef CHESS_COLOR_H_INCLUDED
9#define CHESS_COLOR_H_INCLUDED
17#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 202311L
void chess_color_debug(ChessColor color)
Prints a debug representation of the given color.
ChessColor
Represents the color of a chess piece, square or player.
Definition color.h:26
@ CHESS_COLOR_BLACK
Definition color.h:28
@ CHESS_COLOR_WHITE
Definition color.h:27
@ CHESS_COLOR_NONE
Definition color.h:30
ChessColor chess_color_opposite(ChessColor color)
Returns the opposite color (white <-> black).
bool chess_color_is_valid(ChessColor color)
Checks if the given color is valid (white or black).
Defines macros and constants for the library.
#define CHESS_ENUM(type, name)
Defines a typed enum or a typedef enum based on the availability of typed enums in the compiler.
Definition macros.h:84