Skip to content
/ mdice Public

TUI-based game inspired by the Magic Dice Game (魔法のダイスゲーム) , played in Kakegurui Twin.

License

Notifications You must be signed in to change notification settings

bxavaby/mdice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎲 MDICE: THE MAGIC DICE GAMBLE

Python License Platform Contributions GitHub issues GitHub forks GitHub stars

Mdice is inspired by Kakegurui Twin. In this game, players face off a dealer in a strategic battle of dice rolls, however.. THE DEALER ALWAYS HAS THE UPPER HAND.

Table of Contents

Demo

Mdice Demo
✨ A walkthrough ✨

Features

  • 🎮 Optional loading screen: The -nl flag skips the loading screen.
  • 💰 Balance status: Persistent tracking across sessions.
  • 🎯 Probability: The dealer picks second.

Game Rules

  1. Starting balance of ¥100 million.
  2. Each turn, the player:
    • 💸 Places a bet in ¥ (100k, 3M, 9B).
    • Picks their dice before the dealer.
  3. Both the player and dealer roll their dice.
  4. If the player's roll is higher, they ✅ double their bet; otherwise, they ❌ lose the bet amount.

Dice Probabilities

Each dice has unique numbers, creating strategic advantages and disadvantages

  • : 3, 3, 4, 4, 8, 8
  • : 1, 1, 5, 5, 9, 9
  • 🔴: 2, 2, 6, 6, 7, 7

Statistical advantages

  • ⚫ > 🔴 (66.7%)
  • ⚪ > ⚫ (66.7%)
  • 🔴 > ⚪ (66.7%)

Project Structure

.
├── balance.json      # balance track
├── kolo.py           # utilities
└── mdice.py          # game logic

Installation and Usage

Prerequisites

  • Python 3.8 or later
  • Virtual environment (recommended)

Steps to Run

  1. Clone the repository:

    git clone https://github.com/bxavaby/mdice.git
    cd mdice
  2. Run the Game:

    python mdice.py

License 📜

This project is licensed under the MIT License. See the LICENSE file for details.

About

TUI-based game inspired by the Magic Dice Game (魔法のダイスゲーム) , played in Kakegurui Twin.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages