Day6669 / OOP-Asssessment-A

0 stars 1 forks source link

Code Review - Harry #4

Open Harry1308 opened 1 year ago

Harry1308 commented 1 year ago

Pros

Improvements

private static string FormatCard(Card card)
{
    return $"{card.Suit}-{card.Value}";
}

private static string FormatCards(List<Card> cards)
{
    return string.Join("", cards.Select(card => FormatCard(card)));
}

Overall, it seems like the code was well-written, and the tests cover what the pack of cards is supposed to do.

Day6669 commented 1 year ago

I didn't think of this! Thankyou!