June 2021
Beginner
432 pages
9h 9m
English
Cho-han is a dice game played in gambling houses of feudal Japan. Two six-sided dice are rolled in a cup, and gamblers must guess if the sum is even (cho) or odd (han). The house takes a small cut of all winnings. The simple random number generation and basic math used to determine odd or even sums make this project especially suitable for beginners. More information about Cho-han can be found at https://en.wikipedia.org/wiki/Cho-han.
When you run chohan.py, the output will look like this:
Cho-Han, by Al Sweigart al@inventwithpython.com In this traditional Japanese dice game, two dice are rolled in a bamboo ...Read now
Unlock full access