{"id":26901880,"url":"https://github.com/bxavaby/mdice","last_synced_at":"2025-04-01T09:08:39.743Z","repository":{"id":266914176,"uuid":"899735986","full_name":"bxavaby/mdice","owner":"bxavaby","description":"TUI-based game inspired by the Magic Dice Game (魔法のダイスゲーム) , played in Kakegurui Twin.","archived":false,"fork":false,"pushed_at":"2025-03-28T10:53:34.000Z","size":188,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T11:37:44.501Z","etag":null,"topics":["dice-game","kakegurui","python","text-based-game"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bxavaby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-06T22:38:12.000Z","updated_at":"2025-03-28T10:53:37.000Z","dependencies_parsed_at":"2024-12-07T00:32:43.713Z","dependency_job_id":"fef799c5-8bb9-45de-b680-6954b43ec866","html_url":"https://github.com/bxavaby/mdice","commit_stats":null,"previous_names":["bxavaby/mdice"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bxavaby%2Fmdice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bxavaby%2Fmdice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bxavaby%2Fmdice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bxavaby%2Fmdice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bxavaby","download_url":"https://codeload.github.com/bxavaby/mdice/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246612485,"owners_count":20805355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dice-game","kakegurui","python","text-based-game"],"created_at":"2025-04-01T09:08:39.138Z","updated_at":"2025-04-01T09:08:39.730Z","avatar_url":"https://github.com/bxavaby.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎲 MDICE: THE MAGIC DICE GAMBLE\n\n[![Python](https://img.shields.io/badge/Python-3.8%2B-blue?style=flat-square)](https://www.python.org/downloads/)\n[![License](https://img.shields.io/badge/License-MIT-green?style=flat-square)](LICENSE)\n[![Platform](https://img.shields.io/badge/Platform-Terminal-lightgrey?style=flat-square)](#)\n[![Contributions](https://img.shields.io/badge/Contributions-Welcome-orange?style=flat-square)](CONTRIBUTING.md)\n[![GitHub issues](https://img.shields.io/github/issues/bxavaby/mdice?style=flat-square)](https://github.com/bxavaby/mdice/issues)\n[![GitHub forks](https://img.shields.io/github/forks/bxavaby/mdice?style=flat-square)](https://github.com/bxavaby/mdice/network)\n[![GitHub stars](https://img.shields.io/github/stars/bxavaby/mdice?style=flat-square)](https://github.com/bxavaby/mdice/stargazers)\n\n**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**. \n\n\n## Table of Contents\n- [Demo](#demo)\n- [Features](#features)\n- [Game Rules](#game-rules)\n- [Dice Probabilities](#dice-probabilities)\n- [Project Structure](#project-structure)\n- [Installation and Usage](#installation-and-usage)\n- [License](#license)\n\n\n## Demo\n![Mdice Demo](assets/magic.gif)  \n*✨ a walkthrough ✨*\n\n\n## Features\n- **🎮 Optional loading screen**: The `-nl` flag skips the loading screen.\n- **💰 Balance status**: Persistent tracking across sessions.\n- **🎯 Probability**: The dealer picks second.\n\n\n## Game Rules\n1. Starting balance of **¥100 million**.\n2. Each turn, the player:\n   - 💸 Places a bet in **¥** (`100k`, `3M`, `9B`).\n   - Picks their dice before the dealer.\n3. Both the player and dealer roll their dice.\n4. If the player's roll is higher, they ✅ **double their bet**; otherwise, they ❌ lose the bet amount.\n\n\n## Dice Probabilities\n\n#### **Each dice has unique numbers, creating strategic advantages and disadvantages**\n- **⚫**: `3, 3, 4, 4, 8, 8`\n- **⚪**: `1, 1, 5, 5, 9, 9`\n- **🔴**: `2, 2, 6, 6, 7, 7`\n\n#### **Statistical advantages**\n- **⚫ \u003e 🔴** (66.7%)\n- **⚪ \u003e ⚫** (66.7%)\n- **🔴 \u003e ⚪** (66.7%)\n\n\n## **Project Structure**\n```plaintext\n.\n├── balance.json      # balance track\n├── kolo.py           # utilities\n└── mdice.py          # game logic\n```\n\n\n## **Installation and Usage**\n\n#### **Prerequisites**\n- Python 3.8 or later\n- Virtual environment (recommended)\n\n#### **Steps to Run**\n1. **Clone the repository**:\n\n   ```bash\n   git clone https://github.com/bxavaby/mdice.git\n   cd mdice\n   ```\n   \n2. **Run the Game**:\n\n   ```bash\n   python mdice.py\n   ```\n   \n\n## License 📜\nThis project is licensed under the MIT License. See the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbxavaby%2Fmdice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbxavaby%2Fmdice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbxavaby%2Fmdice/lists"}