15 lines
325 B
C++
15 lines
325 B
C++
#pragma once
|
|
#include <cassert>
|
|
#include <string>
|
|
|
|
namespace solitaire {
|
|
enum class CardType : int { Zhong, Bai, Fa, Hua, Red, Green, Black };
|
|
|
|
auto isNormalCardType(CardType type) -> bool;
|
|
|
|
struct Card {
|
|
CardType type;
|
|
int value;
|
|
[[nodiscard]] auto toString() const noexcept -> std::string;
|
|
};
|
|
} // namespace solitaire
|