Skip to content

Instantly share code, notes, and snippets.

@Takeru-chan
Takeru-chan / sicbo.rb
Created August 10, 2014 00:08
Ruby code of "Sic bo".
# coding: utf-8
# "Sic bo" is a popular casino game in Macao.
# Player bets the result of three dice...
def dice
rand(6) + 1
end
num = [dice, dice, dice]
odev = ["EVEN", "ODD"]