
DreiMann is a game that requires two dice and can be played in a group of at least three people. It is often used as a party game. This implementation replaces the dice and displays the current move on a seven-segment display.
A move consists of rolling two dice. To do this, one person must press both buttons. The result is shown on the 7-segment display.
Possible dice combinations and their display:
Game explanation:
If a different combination of dice is rolled (middle line), nothing happens. After rolling a result, it is the next person's turn.
Have fun playing!
Connect the hardware. Get together with a few friends and try playing the game. Don't forget to have fun.
Two buttons (pin 0 and pin 1) are required to execute the dice rolls. To execute a dice roll, the pin must be set to HIGH (1). By default, the pin should be set to LOW (0).
An additional switch can be connected to pin 2, which can be used to switch between common cathode and common anode of the 7-segment display. By default (LOW), this display is set to common anode.
For visualization, a 7-segment display must be connected to the output (pin 0 to pin 7).
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | roll_dice_1 | segment_0 | |
| 1 | roll_dice_2 | segment_1 | |
| 2 | switch_common_cathode_anode_7segmentdisplay | segment_2 | |
| 3 | segment_3 | ||
| 4 | segment_4 | ||
| 5 | segment_5 | ||
| 6 | segment_6 | ||
| 7 | segment_7 |