1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00
ladybird/Userland/Libraries/LibCards
Sam Atkins aac2488d5c LibCards+Games: Replace card "value" int with a Rank enum
Because `card->value() == 11` is a lot less clear than `card->rank() ==
Cards::Rank::Queen`, and also safer.

Put this, along with the `Suit` enum, in the `Cards` namespace directly
instead of inside `Cards::Card`. Slightly less typing that way.
2022-08-22 12:50:41 +02:00
..
Card.cpp LibCards+Games: Replace card "value" int with a Rank enum 2022-08-22 12:50:41 +02:00
Card.h LibCards+Games: Replace card "value" int with a Rank enum 2022-08-22 12:50:41 +02:00
CardGame.cpp LibCards: Add a CardGame base class 2022-08-22 12:50:41 +02:00
CardGame.h LibCards: Add a CardGame base class 2022-08-22 12:50:41 +02:00
CardStack.cpp LibCards+Games: Replace card "value" int with a Rank enum 2022-08-22 12:50:41 +02:00
CardStack.h Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
CMakeLists.txt LibCards: Add a CardGame base class 2022-08-22 12:50:41 +02:00