What was the game played in Pirates of the Caribbean?

The game played in Pirates of the Caribbean 2: Dead man's chest is called liar's dice (if you want the movie edition it's called "pirates dice").