![]() |
Cluedo Solver v1.0
Cluedo game solver making deductions.
|
#include <array>#include <cstdint>#include <string_view>Go to the source code of this file.
Classes | |
| struct | Cluedo::CardUtils |
| A series of utilities for the cards. More... | |
| struct | Cluedo::CardUtils::CardIterator |
| An iterator for cards. More... | |
| struct | Cluedo::CardUtils::cards |
| Helper class for iterator on all the cards. More... | |
| struct | Cluedo::CardUtils::cards_per_category |
| Helper class for iterator on all the cards of a category. More... | |
Macros | |
| #define | _ENUMERATE_SUSPECTS |
| Enumerates the suspect cards. | |
| #define | _ENUMERATE_WEAPONS |
| Enumerates the weapon cards. | |
| #define | _ENUMERATE_ROOMS |
| Enumerates the room cards. | |
| #define | _ENUMERATE_CARDS |
| Enumerates all the cards. | |
| #define | _ENUMERATE_CARD(x) |
Enumerations | |
| enum class | Cluedo::CardCategory : std::uint8_t { Suspect = 0 , Weapon = 6 , Room = 12 } |
| The categories of the cards in Cluedo. More... | |
| enum class | Cluedo::Card : std::uint8_t { _ENUMERATE_CARD , _Count } |
| All the cards in Cluedo. | |
Functions | |
| std::string_view | Cluedo::format_as (CardCategory category) |
| std::string_view | Cluedo::format_as (Card card) |
The file that contains data about Cluedo cards.
| #define _ENUMERATE_CARD | ( | x | ) |
| #define _ENUMERATE_CARDS |
Enumerates all the cards.
| #define _ENUMERATE_ROOMS |
Enumerates the room cards.
| #define _ENUMERATE_SUSPECTS |
Enumerates the suspect cards.
| #define _ENUMERATE_WEAPONS |
Enumerates the weapon cards.
|
strong |
| std::string_view Cluedo::format_as | ( | Card | ) |
Formats the card as a string.
| std::string_view Cluedo::format_as | ( | CardCategory | ) |
Formats the card category as a string.