Cluedo Solver v1.0
Cluedo game solver making deductions.
Loading...
Searching...
No Matches
Cluedo::CardUtils Struct Reference

A series of utilities for the cards. More...

#include <Card.hpp>

Classes

struct  CardIterator
 An iterator for cards. More...
 
struct  cards
 Helper class for iterator on all the cards. More...
 
struct  cards_per_category
 Helper class for iterator on all the cards of a category. More...
 

Static Public Member Functions

static constexpr CardCategory card_category (Card card)
 

Static Public Attributes

static constexpr std::size_t CARD_COUNT = static_cast<std::size_t>(Card::_Count)
 The number of cards in Cluedo.
 
static constexpr std::array card_categories { CardCategory::Suspect, CardCategory::Weapon, CardCategory::Room }
 The categories of the cards stored as an array.
 

Detailed Description

A series of utilities for the cards.

Member Function Documentation

◆ card_category()

static constexpr CardCategory Cluedo::CardUtils::card_category ( Card card)
inlinestaticconstexpr

Returns the category of a card.

Parameters
cardThe card of which to get the category.

The documentation for this struct was generated from the following file: