Core logic component that evaluates Blackjack hands, determines winners, and applies rule-based outcomes such as Blackjack, busts, and pushes.
Overview
The Blackjack Evaluator is a static utility class responsible for all hand evaluation logic in the uVegas Blackjack system.
It determines hand totals, detects soft and hard hands, checks for Blackjack or bust conditions, and compares player and dealer hands according to the configured Blackjack Rules.
This component ensures consistent and rule-driven hand evaluation across all clients and the server, making it a critical part of gameplay resolution.
Core Responsibilities
Hand Evaluation - Calculates total, soft/hard value, and bust status for a given hand.
Blackjack Detection - Identifies a natural Blackjack based on card count and total.
Hand Comparison - Compares player and dealer hands and returns the appropriate game outcome.
Rule Integration — Uses parameters from BlackjackRules to ensure flexibility across different table configurations.
Key Methods
EvaluateHandValue(List<Card> hand)
Evaluates a player or dealer hand and returns a structured HandValue object containing:
Property
Description
Total
Best possible total (soft or hard) under 21.
HardTotal
Value when counting all aces as 1.
SoftTotal
Value when at least one ace counts as 11 (if possible).