<<< About "Dice" >>>
Dice is a sample program for "DICE" class dialog control.
The program tryies to simulate a gambling game, Cee-lo (so-called "Chinchirorin" in Japan. Hereinafter, descripsions are based on Japanese "Chinchirorin".)
"Chinchirorin" is played between a dealer and a player. A game starts by a dealer throwing three dices. The dealer may immediately win (without players competing)  or lose, because of "hands" or "Point" (See below). After the dealer's dice throw, a player is eligible to compete only when he or she rolls three dices and makes "Point" (the number of the third dice, with the other two dices having the same number) or any of "hands".
A dealer loses, when a player has Storm (triple of the same number) or 456, even though the dealer made Point. Otherwise, a dealer and a player compete by the number of the third dice.

Synopses of Hands or twins follow.
<Your hand> - Gain - Description
Point - the bet amount - In case that the third dice number is 6, the dealer immediately wins and in case of 1, he or she immediately loses. Otherwise, the dealer wins, when he or she gets a bigger number of the third dice than players'.
Storm - 3 times the bet - A dealer or players immediately wins, when the same three numbers come out.
456 (four-five-six) - 2 times the bet - A game is immediately won, when 4, 5 and 6 come out.
123 (one-two-three) - 2 times the bet - A game is immediately lost, when 1, 2 and 3 come out.
For more details see below
https://en.wikipedia.org/wiki/Cee-lo

<<<Rules of "Chinchirorin">>>
(1) In the first place, a dealer is selected by rolling a dice. (In this "Dice", you are the dealer.)
(2) Then players place their bets.
(3) The dealer throws three (3) dices into a bowl.
(4) The dealer immediately wins ("winner-take-all"), if he or she has got Storm, 456 or Twins + '6'.
(5) The dealer immediately loses money and the capacity, if he or she has 123 with doubled payments to all.
(6) The dealer immediately loses money and the capacity, if he or she has Twins + '1', no Twins or "Out-of-bowl" (Thrown dice(s) get(s) out of the bowl. So-called "Pee".)
(7) When the dealer has Twins + '2' through '5', playsers on right next to the dealer then challenge, one by one. 
(8) A player wins, if he or she has Storm (3 times the bet), 456 (2 times the bet) or Twins + any bigger number than the dealer's (1 times the bet).
(9) Other than Twins + same number as the dealer's resulting in a draw, players lose their bets except 123, losing doubled the bet. 
As a general rule, a dealer or players can try three times, if he or she fails to make Twins or any hand.
