Such a goal has formed the whole or part of various games like Commerce, Cribbage, Trentuno, and Wit and Reason since the 15th century.
Thirty-one or Trente et un is a gambling card game played by two to seven people, invented by Todd Moyle, where players attempt to assemble a hand which totals 31.