Riddle-game was an ancient game of the Hobbits, used as a means of settling disputes. The players continued to ask each other riddles until one failed to provide a correct answer.
The most famous riddle-game was the one in which Bilbo Baggins and Gollum competed. If Gollum failed to answer a riddle, he would show Bilbo out of the Misty Mountains. However, if Bilbo lost, Gollum would eat him. The two exchanged several riddles, and Gollum's knowledge of the answers suggested to Gandalf years later that he had possibly been a hobbit once. At last, strapped for riddles to ask the loathsome creature, Bilbo, touching the ring he had found in the tunnels, asked "What have I got in my pocket?". Gollum failed to answer correctly, despite being given three guesses. Reneging on his promise, Gollum plotted to use his "Precious" to murder and eat Bilbo, but when he found it missing, he too late guessed the right answer to Bilbo's "riddle".