#ifndef _FLOOD_COLOR_H_ #define _FLOOD_COLOR_H_ // A list of colors enum color_t { BLUE=0, RED=1, GREEN=2, YELLOW=3, ORANGE=4, VIOLET=5, CYAN=6, PINK=7, MAX_COLOR=8, NO_COLOR=-1, // Color when no move is possible }; // A move from a player in a flood-filling game struct move_t { enum color_t c; }; const char* color_to_string(enum color_t c); // A set of valid colors described as an array of booleans // Note that such a set can only contain colors between BLUE and PINK // // Example : { .t = { 1, 0, 0, 1, 0, 1, 0, 0 } } // represents the set { BLUE, YELLOW, VIOLET } struct color_set_t { char t[MAX_COLOR]; }; #endif // _FLOOD_COLOR_H_