A simple program for the (drinking) game "Meier" or "Mia" or "Mäxchen".
Two players (P1 and P2) play the game Meiern against each other,
where the dice are always rolled alternately with two dice.
Whenever it is a player's turn, his roll must beat the last roll of the other.
The rolls can have the following values: (higher values outperform lower ones).
1) Two different values:
The higher value is seen as a 10's digit, the lower as a ones digit.
--> e.g. A player rolls ... a 3 and a 5 -> value = 53
... a 1 and a 2 -> value = 21
2) Two equal values: doubles!
Each double outbids a roll with different values
Among themselves a higher double outbids a lower one
If a roll has the value 21 (Meier), the player who rolled it wins automatically. S1 begins.
Either you clone or you download the java file.
If your editor doesn't have an integrated terminal, open the cmd, navigate with "cd" to the folder where the file is stored and type "javac Meiern_Mia.java" + Enter. Then "java Meiern_Mia".
But be careful, you still need the Java JDK to use this. You can download it here.
How to reach me:
Send me a DM via
Or visit my website
Or start an issue in the "Issues" Tab.
Biggest thank you goes out to L.S.!