codegard1/blackjack

on Deal, players' hands are not evaluating correctly

Closed this issue · 1 comments

When each player is dealt a new hand, the hand value is incorrect.

capture

It seems that the issue was that playerHand.evaluate was being called multiple times, and on each run the new hand value was being added to the existing hand value