mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:28:11 +00:00
LibCards+Games: Change name of card type to card suit
Playing cards have a `suit` such as `hearts`/`diamonds`, not a `type`. Make the internal naming consistent with the way playing cards are typically named.
This commit is contained in:
parent
4c5e9f5633
commit
a51fce6c0f
9 changed files with 78 additions and 78 deletions
|
@ -55,13 +55,13 @@ void Game::setup(Mode mode)
|
|||
switch (m_mode) {
|
||||
case Mode::SingleSuit:
|
||||
for (int j = 0; j < 8; j++) {
|
||||
deck.append(Card::construct(Card::Type::Spades, i));
|
||||
deck.append(Card::construct(Card::Suit::Spades, i));
|
||||
}
|
||||
break;
|
||||
case Mode::TwoSuit:
|
||||
for (int j = 0; j < 4; j++) {
|
||||
deck.append(Card::construct(Card::Type::Spades, i));
|
||||
deck.append(Card::construct(Card::Type::Hearts, i));
|
||||
deck.append(Card::construct(Card::Suit::Spades, i));
|
||||
deck.append(Card::construct(Card::Suit::Hearts, i));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue