At the end of the game, if your count is the same as the dealer's, it is a Standoff (nobody wins). If the player's count is greater than the dealer's count and both have not exceeded 21, or the dealer's count exceeds 21 and the player's count does not, the player wins.