Gin Rummy Scoring
In Gin Rummy, at the end of the game each player counts the total value of their unmatched cards. They are cards that are not in a set or a run. If the knocker's count is lower, the knocker scores the difference between the two counts.
In games where the knocker did not gin and if the counts are equal, then the knocker's opponent scores the difference between the counts plus a ten point bonus.
When a player goes gin, they recieve a 20 point bonus plus the opponent's count in unmatched cards. A player who goes gin can never be undercut even if the other players has no unmatched cards at all, the knocker gets the 20 point bonus and the other player does not score.
In Rummy face cards are worth 10 points each, number cards are worth their face value and aces are worth 1 point each. Aces are low by default and the cards rank in order: Ace 2 3 4 5 6 7 8 9 10 Jack Queen King
The total value of all the cards remaining from the other players hand that is not part of a set or run is added to the score of the winning player.