The playersHand() and dealersHand() functions always value Aces as 1, ignoring the standard blackjack rule that Aces can be 1 or 11. This limits strategic play and diverges from standard gameplay.
Issue: Aces (cardValue == 1) are always counted as 1.
Affected Code Snippet:
Explanation: There's no logic to adjust the Ace's value to 11 when it benefits the hand total.
Reduced Strategic Depth: Players can't utilize the flexibility of Aces.
Deviation from Standard Rules: The game doesn't align with typical blackjack, possibly affecting player satisfaction.
Manual code review of playersHand() and dealersHand() functions.
Implement Flexible Ace Valuation:
Apply to Both Functions: Ensure both player and dealer hands handle Aces flexibly.
Add Tests: Create tests for hands with Aces to verify correct totals.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.