added gitignore, updated, readme, deleted unnessacery sql files updated the database
This commit is contained in:
parent
4e96cf8b56
commit
0d4119e90b
|
|
@ -0,0 +1,167 @@
|
|||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
|
||||
# C extensions
|
||||
*.so
|
||||
|
||||
# Distribution / packaging
|
||||
bin/
|
||||
build/
|
||||
develop-eggs/
|
||||
dist/
|
||||
downloads/
|
||||
eggs/
|
||||
.eggs/
|
||||
lib/
|
||||
lib64/
|
||||
parts/
|
||||
sdist/
|
||||
var/
|
||||
wheels/
|
||||
share/python-wheels/
|
||||
*.egg-info/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
MANIFEST
|
||||
|
||||
# PyInstaller
|
||||
# (Usually these files are written by a python script from a template before PyInstaller builds)
|
||||
*.manifest
|
||||
*.spec
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
pip-delete-this-directory.txt
|
||||
|
||||
# Unit test / coverage reports
|
||||
htmlcov/
|
||||
.tox/
|
||||
.nox/
|
||||
.coverage
|
||||
.coverage.*
|
||||
.cache
|
||||
nosetests.xml
|
||||
coverage.xml
|
||||
*.cover
|
||||
*.py,cover
|
||||
.hypothesis/
|
||||
.pytest_cache/
|
||||
cover/
|
||||
|
||||
# Translators note files
|
||||
*.mo
|
||||
*.pot
|
||||
|
||||
# Django stuff:
|
||||
*.log
|
||||
local_settings.py
|
||||
db.sqlite3
|
||||
db.sqlite3-journal
|
||||
|
||||
# Flask stuff:
|
||||
instance/
|
||||
.webassets-cache
|
||||
|
||||
# Scrapy stuff:
|
||||
.scrapy
|
||||
|
||||
# Sphinx documentation
|
||||
docs/_build/
|
||||
|
||||
# PyBuilder
|
||||
.pybuilder/
|
||||
target/
|
||||
|
||||
# Jupyter Notebook
|
||||
.ipynb_checkpoints
|
||||
|
||||
# IPython
|
||||
profile_default/
|
||||
ipython_config.py
|
||||
|
||||
# pyenv
|
||||
# For a library or package, you might want to ignore these files since they are usually
|
||||
# set by poetry or pipenv and could be unique to users
|
||||
.python-version
|
||||
|
||||
# pipenv
|
||||
# According to pypa/pipenv#598, it is recommended to check in Pipfile.lock into version control.
|
||||
# However, in some cases, you may wish to ignore it. See github.com/pypa/pipenv/issues/598
|
||||
# pipenv.lock
|
||||
|
||||
# poetry
|
||||
# Similar to Pipfile.lock, it is generally recommended to check poetry.lock into version control.
|
||||
# This is especially true for binary packages to ensure reproducible builds.
|
||||
# poetry.lock
|
||||
|
||||
# pdm
|
||||
# Similar to Pipfile.lock, it is generally recommended to check pdm.lock into version control.
|
||||
# pdm.lock
|
||||
.pdm.toml
|
||||
|
||||
# PEP 582; used by e.g. hatch, PDM
|
||||
__pypackages__/
|
||||
|
||||
# Celery stuff
|
||||
celerybeat-schedule
|
||||
celerybeat.pid
|
||||
|
||||
# SageMath parsed files
|
||||
*.sage.py
|
||||
|
||||
# Environments
|
||||
.env
|
||||
.venv
|
||||
env/
|
||||
venv/
|
||||
ENV/
|
||||
env.bak
|
||||
venv.bak
|
||||
.venv_build_linux/
|
||||
.venv_build_macos/
|
||||
.venv_build_win/
|
||||
|
||||
# Spyder project settings
|
||||
.spyderproject
|
||||
.spyderhistory
|
||||
|
||||
# Rope project settings
|
||||
.ropeproject
|
||||
|
||||
# mkdocs documentation
|
||||
./site
|
||||
|
||||
# mypy
|
||||
.mypy_cache/
|
||||
.dmypy.json
|
||||
dmypy.json
|
||||
|
||||
# Pyre type checker
|
||||
.pyre.db
|
||||
|
||||
# pytype static type analyzer
|
||||
.pytype/
|
||||
|
||||
# Cython debug symbols
|
||||
cython_debug/
|
||||
|
||||
# PyCharm / VS Code / IDEs
|
||||
.idea/
|
||||
.vscode/
|
||||
*.swp
|
||||
*.swo
|
||||
|
||||
# OS generated files
|
||||
zeit.txt
|
||||
.DS_Store
|
||||
.DS_Store?
|
||||
._*
|
||||
.Spotlight-V100
|
||||
.Trashes
|
||||
ehthumbs.db
|
||||
Thumbs.db
|
||||
|
||||
# Lokale Spielstand-Datenbank (wichtig, damit Spielstände nicht ins Git geraten)
|
||||
user_data.db
|
||||
338
README.md
338
README.md
|
|
@ -1,179 +1,209 @@
|
|||
# † The Goth Cardgame Collection †
|
||||
# The Goth Cardgame Collection
|
||||
|
||||
**[Deutsch](#deutsch) | [English](#english)**
|
||||
[**Deutsch**](#-deutsch) | [**English**](#-english)
|
||||
|
||||
---
|
||||
|
||||
<a name="deutsch"></a>
|
||||
## 🇩🇪 Deutsch
|
||||
## Deutsch
|
||||
|
||||
### Überblick
|
||||
**The Goth Cardgame Collection** ist eine erweiterbare Desktop-Kartenspielsammlung in Python (`tkinter` + `Pillow` + `SQLite`) im düsteren Gothic-Tarot-Stil. Das Projekt trennt strikt zwischen reinen Account-Profilen („Seelen“), spielgebundenem Fortschritt und einer zweigeteilten Datenbank-Architektur für unveränderliche Stammdaten und dynamische Spielstände.
|
||||
|
||||
### Kern-Features des Hauptprogramms
|
||||
|
||||
* **Seelen-Profile & Spielgebundene Progression:**
|
||||
* Ein Profil speichert lediglich die Identität des Spielers („Seele“).
|
||||
* **Kein Cross-Game-Grinding:** Jedes Spiel besitzt ein komplett eigenes Level, eigene Erfahrungspunkte (XP) und eigene Konsequenzen. Wer in Solitaire aufsteigt, kann diese XP nicht für Casino-Gold in Blackjack oder Poker zweckentfremden.
|
||||
* **1.295+ Prestige-Stufen:** 259 Ränge mit je 5 römischen Unterstufen (`Erst-Starter I` bis `Schöpfergeist V`), gefolgt vom offenen Endlos-Rang **`Gottheit 1, 2, 3...`** (ab Level 1.296).
|
||||
* **Flache 4-Kategorien-Architektur (ohne Untermenüs):**
|
||||
* **Glück (`luck`):** Casino- und Wettspiele (*Blackjack*, *Texas Hold'em*) mit harten Konsequenzen, Goldbeuteln, *Divine Punishment* und *The Devil's Deal*.
|
||||
* **Solo (`solo`):** Reine Logik- und Geduldsspiele (*Klondike*, *FreeCell*, *Spider Solitaire*) ohne Gold-Zwang und mit eigenen Rückstufungsregeln.
|
||||
* **Gesellschaft - Offline (`party_offline`):** Klassische Runden am lokalen Tisch gegen KI-Charaktere.
|
||||
* **Online (`online`):** Kein Welpenschutz – Partien gegen echte Gegner sowie entfesselte KI-Spieler auf **Gottheit-Niveau (Stufe 6)**.
|
||||
* **Dynamischer Game-Loader (Plugin-Prinzip):**
|
||||
* Neue Spiele werden einfach als Ordner mit einer `start.py` unter `games/` abgelegt und in `GAME_FOLDERS` registriert (`start_game(context)`, `GAME_TITLE_KEY`, `GAME_CATEGORY`).
|
||||
* **Duale SQLite-Datenbank-Architektur:**
|
||||
* `resources/code_res/internal_base.db` *(Read-Only Stammdaten)*: Enthält alle Übersetzungen (`base_i18n`), alle 260 Prestige-Ränge (`base_prestige_ranks`) und Spielvarianten (`game_variants`). Wird per `ATTACH DATABASE ... AS core` eingebunden.
|
||||
* `user_data.db` *(Dynamische Nutzerdaten)*: Speichert Profile, spielgebundene XP & Level-Historien, Goldbeutel, Bot-Setups, Fenstergeometrie, Audio-Settings, Statistiken und Pakt-Savegames.
|
||||
* **Dynamisches UI-System & Visuelles State-Feedback:**
|
||||
* Eigene rahmenlose Alpha-PNG-Buttons (`ImageButton`) mit automatischem PIL-Graustufen- und Abdunklungsfilter (`enabled=False`) für inaktive Aktionen, gesperrte Tische oder fehlende Voraussetzungen.
|
||||
* Vektorbasierte Gothic-Tarot-Spielkarten im Auswahlmenü sowie eine erweiterbare Topbar (`AppContext.build_game_topbar`) mit optionaler Direkteinbindung spielspezifischer Statistik-Ansichten und Live-Währungsanzeigen.
|
||||
* **Live-Zweisprachigkeit (DE / EN):**
|
||||
* Umschaltung zu jeder Zeit (im Hauptmenü, in Statistiken oder mitten im laufenden Spielzug) ohne Neustart.
|
||||
* **Audio- & Atmosphären-Manager:**
|
||||
* Getrennte Lautstärkeregler für Hintergrundmusik (*Beyond the Iron Gate* im Menü, *The Midnight Hand* am Spieltisch) und Soundeffekte, persistent in der DB gespeichert.
|
||||
* **Detailliertes Statistik-Board:**
|
||||
* Spiel- und variantenspezifische Auswertung für gespielte/gewonnene/verlorene Runden, Siegquote in %, aktuelle & längste Siegesserie sowie beste und durchschnittliche Spielzeit.
|
||||
|
||||
### Verzeichnisstruktur
|
||||
|
||||
```text
|
||||
the_goth_cardgame_collection/
|
||||
├── main.py # Einstiegspunkt
|
||||
├── README.md # Hauptdokumentation (DE/EN)
|
||||
├── user_data.db # Dynamische Spieler- & Savegame-DB (wird automatisch erzeugt)
|
||||
├── controller/
|
||||
│ ├── app_controller.py # Hauptsteuerung, Login, Kategorien & Devil's-Lock-Prüfung
|
||||
│ ├── app_context.py # Schnittstelle & Topbar-Builder zwischen Hauptprogramm und Spiel
|
||||
│ └── game_loader.py # Dynamischer Loader für Spiele unter games/
|
||||
├── models/
|
||||
│ ├── card.py # Karten-Modell
|
||||
│ ├── deck.py # Deck-Verwaltung & Mischen
|
||||
│ ├── database.py # Kapselung aller SQLite-Zugriffe & Transaktionen
|
||||
│ ├── progression.py # Level-, XP- & Prestige-Berechnung (spielgebunden)
|
||||
│ └── sound_manager.py # Musik- & SFX-Steuerung
|
||||
├── resources/
|
||||
│ ├── code_res/
|
||||
│ │ ├── game_constants.py # Zentrale Konstanten, Kategorien, Farben & Balancing-Werte
|
||||
│ │ ├── i18n.py # Übersetzungs-Cache & Formatierung
|
||||
│ │ ├── sql_queries.py # Alle SQL-Statements zentral ausgelagert
|
||||
│ │ ├── internal_base.sql # Vollständiger SQL-Dump der Stammdaten
|
||||
│ │ └── internal_base.db # Kompilierte SQLite-Stammdatenbank
|
||||
│ ├── images/ # UI-Grafiken & Kartendecks
|
||||
│ └── sounds/ # Musik & Soundeffekte
|
||||
├── view/
|
||||
│ ├── main_window.py # Hauptfenster, Geometrie-Speicherung & globale Styles
|
||||
│ ├── assets_manager.py # Bild- & GIF-Caching
|
||||
│ ├── dialogs/ # Modale Dialoge (z.B. Audio-Einstellungen)
|
||||
│ ├── menus/ # LoginView, MainMenuView, StatisticsView
|
||||
│ └── widgets/ # Wiederverwendbare UI-Bausteine (ImageButton inkl. Graufilter, StatsBoard, BotSetup)
|
||||
└── games/
|
||||
└── blackjack/ # Blackjack – Devil's Gambit Modul (inkl. eigener README & StatsView)
|
||||
```
|
||||
|
||||
### Installation & Start
|
||||
|
||||
1. **Abhängigkeiten installieren:**
|
||||
```bash
|
||||
pip install pillow pygame
|
||||
```
|
||||
2. **Stammdatenbank (`internal_base.db`) aus SQL-Dump erzeugen/aktualisieren:**
|
||||
```powershell
|
||||
sqlite3 resources/code_res/internal_base.db ".read resources/code_res/internal_base.sql"
|
||||
```
|
||||
3. **Spiel starten:**
|
||||
```bash
|
||||
python main.py
|
||||
```
|
||||
|
||||
### Spiele-Dokumentationen
|
||||
* [Blackjack – Devil's Gambit (`games/blackjack/README.md`)](games/blackjack/README.md)
|
||||
### 1. Projektüberblick
|
||||
**The Goth Cardgame Collection** ist eine modulare Desktop-Kartenspiel-Sammlung in dunkler Gothic-Ästhetik, entwickelt mit **Python 3.11+**, **Tkinter**, **Pillow (PIL)**, **Pygame (Audio)** und **SQLite3**.
|
||||
Jedes Spiel arbeitet als vollständig gekapseltes Modul mit **eigener Erfahrungskurve (XP & Ränge)**, eigenen Statistiken und – bei Glücksspielen – einer komplett autarken Gold-Wirtschaft samt harten Konsequenzen.
|
||||
|
||||
---
|
||||
|
||||
<a name="english"></a>
|
||||
## 🇬🇧 English
|
||||
### 2. Kern-Features & Systemarchitektur
|
||||
|
||||
### Overview
|
||||
**The Goth Cardgame Collection** is an extensible desktop card game suite built with Python (`tkinter` + `Pillow` + `SQLite`), styled in a dark Gothic Tarot aesthetic. The architecture strictly separates player identity ("Souls"), game-bound progression, and a dual-database setup for immutable core data versus dynamic player states.
|
||||
* **Flache 4-Kategorien-Navigation (keine verschachtelten Unterkategorien):**
|
||||
* **Glück (`luck`):** Spiele mit eigenen Goldbeuteln, Tischeinsätzen, *Divine Punishment* und *The Devil's Deal* (**Blackjack**, **Texas Hold'em**).
|
||||
* **Solo (`solo`):** Klassische Patience-/Solitaire-Spiele ohne Gold-Zwang, mit eigenen Fortschritts- und Rückstufungsregeln (*Klondike*, *FreeCell*, *Spider Solitaire* – vorbereitet).
|
||||
* **Gesellschaft - Offline (`party_offline`):** Lokale Gesellschaftsrunden gegen KI-Charaktere (in Vorbereitung).
|
||||
* **Online (`online`):** Mehrspieler-Tische & entfesselte Bots auf *Gottheit*-Niveau ohne Welpenschutz (in Vorbereitung).
|
||||
* **Spielgebundenes Prestige- & Rangsystem:**
|
||||
* **260 Ränge** (0–258 in römischen Stufen `I–V`, ab Rang 259 unendliche **Gottheit**-Stufen).
|
||||
* Jedes Spiel verwaltet seinen eigenen Level- und XP-Stand (`game_progress`), sodass Fortschritte zwischen einzelnen Spielen niemals vermischt werden.
|
||||
* **Autarke Glücksspiel-Ökonomie, Divine Punishment & The Devil's Deal:**
|
||||
* Bis zu **5 eigene Goldbeutel** pro Glücksspiel und Profil (je `1.000 Gold` Startkapital).
|
||||
* **XP-gegen-Gold-Tausch:** Regulär `10.000 XP` für `+10 Gold` (ausschließlich aus dem XP-Pool des jeweiligen Spiels).
|
||||
* **Divine Punishment:** Wer im jeweiligen Spiel einmal den Rang *Gottheit* erreicht hat, zahlt für Gold-Tausche das $10$-fache der Durchschnitts-XP des Vorlevels und kann maximal bis auf die Untergrenze von *Schöpfergeist V* zurückfallen.
|
||||
* **The Devil's Deal:** Ist die Untergrenze von *Schöpfergeist V* erreicht, kann ein anderes Seelen-Profil geopfert werden (sofern dieses **im selben Spiel** mindestens den Rang **Stütze I** hält), um `+10 Gold` zu erhalten. Während eines aktiven Pakts sind alle anderen Menüs und Spiele gesperrt (*Auto-Save & Resume-Zwang*), bis die Runde entschieden ist.
|
||||
* **7 KI-Schwierigkeitsgrade (Stufe 0 bis Stufe 6 „Gottheit“):**
|
||||
* Frei konfigurierbare Gegner-Slots mit persistent gespeicherten Namen und KI-Stufen pro Spiel (`bot_configs`).
|
||||
* **Gothic UI, Custom Fonts & Cross-Platform Integration:**
|
||||
* Dynamischer Laufzeit-Font-Loader (`view/font_loader.py`) für mitgelieferte `.ttf`-Schriften (`OldLondon.ttf` & `OldLondonAlternate.ttf`) komplett ohne Systeminstallation unter **Windows**, **Linux**, **ChromeOS (Crostini)** und **macOS**.
|
||||
* Plattformübergreifendes Anwendungs-Icon (`game_icon.ico` inkl. Windows-Taskbar-ID, Multi-Size X11/Wayland `WM_CLASS` & macOS-Dock-Unterstützung).
|
||||
* Automatische Speicherung & Wiederherstellung von Fenstergröße, Bildschirmposition und Maximiert-/Vollbild-Status (`view/window_state.py`).
|
||||
* Vollständige Zweisprachigkeit (**Deutsch / Englisch**) im Live-Wechsel sowie zweikanalige Audio-Steuerung (Ambiance/Hintergrundmusik & Soundeffekte).
|
||||
|
||||
### Core Engine Features
|
||||
---
|
||||
|
||||
* **Soul Profiles & Game-Bound Progression:**
|
||||
* A profile strictly represents the player's identity ("Soul").
|
||||
* **Zero Cross-Game Grinding:** Every game tracks its own independent XP, level, and consequences. Progress earned in Solitaire cannot be converted into casino gold for Blackjack or Poker.
|
||||
* **1,295+ Prestige Levels:** 259 rank titles divided into 5 Roman sub-tiers (`First-Starter I` up to `Creator Spirit V`), followed by open-ended **`Deity 1, 2, 3...`** ranks starting at Level 1,296.
|
||||
* **Flat 4-Category Structure (No Submenus):**
|
||||
* **Luck (`luck`):** High-stakes gambling games (*Blackjack*, *Texas Hold'em*) featuring gold pouches, *Divine Punishment*, and *The Devil's Deal*.
|
||||
* **Solo (`solo`):** Pure skill and patience games (*Klondike*, *FreeCell*, *Spider Solitaire*) with dedicated progression and demotion mechanics, free of gold entry fees.
|
||||
* **Party - Offline (`party_offline`):** Classic parlor card games played locally against AI personalities.
|
||||
* **Online (`online`):** No hand-holding – matches against human players and unleashed **Deity-tier bots (Level 6)**.
|
||||
* **Dynamic Game Loader:**
|
||||
* Games live in modular folders under `games/` exposing a `start.py` (`start_game(context)`, `GAME_TITLE_KEY`, `GAME_CATEGORY`).
|
||||
* **Dual SQLite Database Architecture:**
|
||||
* `resources/code_res/internal_base.db` *(Read-Only Core Data)*: Stores all translations (`base_i18n`), all 260 prestige titles (`base_prestige_ranks`), and game variants (`game_variants`), attached at runtime as `core`.
|
||||
* `user_data.db` *(Dynamic User Data)*: Stores profiles, per-game XP & level history, gold pouches, bot setups, window geometry, audio preferences, statistics, and lock-state savegames.
|
||||
* **Adaptive UI & Visual State Feedback:**
|
||||
* Custom borderless alpha-PNG buttons (`ImageButton`) with automatic PIL grayscale/dimming filters (`enabled=False`) to clearly signal inactive actions, locked tables, or missing prerequisites.
|
||||
* Vector-styled Gothic Tarot game cards in the main menu and an extensible topbar (`AppContext.build_game_topbar`) supporting dedicated per-game statistics views and live balance badges.
|
||||
* **Instant Localization (DE / EN):**
|
||||
* Toggle between German and English on the fly—even mid-hand—without restarting.
|
||||
* **Audio & Ambiance System:**
|
||||
* Separate volume controls for background music and menu/table sound effects, saved persistently.
|
||||
* **Comprehensive Statistics Board:**
|
||||
* Filterable per game and variant: games played/won/lost, win percentage, current & longest streak, best time, and average duration.
|
||||
### 3. Enthaltene & Geplante Spielmodule
|
||||
|
||||
### Directory Structure
|
||||
| Kategorie | Spiel | Status | Varianten & Besonderheiten | Detail-Doku |
|
||||
| :--- | :--- | :--- | :--- | :--- |
|
||||
| **Glück** | **Blackjack** | Spielbar | *Klassisch* (2 Decks) & *Hoher Einsatz* (6 Decks), bis zu 3 Bots, Devil's Gambit Wettbaum, Split/Double, `7-7-7` Sofortsieg | [`games/blackjack/README.md`](games/blackjack/README.md) |
|
||||
| **Glück** | **Texas Hold'em** | Spielbar | *Klassisch* & *Hoher Einsatz*, 6-Max Tisch (1–5 Bots), gleicher Start-Ante, Pre-Flop bis Showdown, All-In & Side-Pots, Info-Hilfesystem | [`games/poker/README.md`](games/poker/README.md) |
|
||||
| **Solo** | **Klondike** | Geplant | *Draw 1* & *Draw 3* (Stammdaten & Varianten-IDs vorbereitet) | — |
|
||||
| **Solo** | **FreeCell** | Geplant | *Standard* (Stammdaten & Varianten-IDs vorbereitet) | — |
|
||||
| **Solo** | **Spider Solitaire** | Geplant | *1 Farbe*, *2 Farben*, *4 Farben* (Stammdaten & Varianten-IDs vorbereitet) | — |
|
||||
|
||||
```text
|
||||
---
|
||||
|
||||
### 4. Projektstruktur
|
||||
|
||||
~~~text
|
||||
the_goth_cardgame_collection/
|
||||
├── main.py # Entry point
|
||||
├── README.md # Main documentation (DE/EN)
|
||||
├── user_data.db # Dynamic player & savegame DB (auto-created)
|
||||
├── main.py # Einstiegspunkt, OS-Icon, Font-Registrierung & Window-Persistence
|
||||
├── build.py # Build-Skript (aktuelles OS oder Cross-Platform-Paketierung)
|
||||
├── user_data.db # Automatisch beim Start erzeugte lokale Spielstand- & Statistik-DB
|
||||
├── controller/
|
||||
│ ├── app_controller.py # Core routing, login, categories & Devil's Lock check
|
||||
│ ├── app_context.py # Bridge & topbar builder between host app and active game
|
||||
│ └── game_loader.py # Dynamic discovery for modules inside games/
|
||||
│ ├── app_controller.py # Hauptsteuerung, Profil-Session & Devil's-Deal-Sperrlogik
|
||||
│ ├── app_context.py # Schnittstelle zwischen Core-App und den Spielmodulen
|
||||
│ └── game_loader.py # Dynamischer Discovery-Loader für games/**/start.py
|
||||
├── models/
|
||||
│ ├── card.py # Playing card model
|
||||
│ ├── deck.py # Shoe & shuffling logic
|
||||
│ ├── database.py # SQLite abstraction & transaction handling
|
||||
│ ├── progression.py # Game-bound XP, level & prestige calculation
|
||||
│ └── sound_manager.py # Music & SFX controller
|
||||
│ ├── card.py # Karten-Datenmodell
|
||||
│ ├── deck.py # Deck- & Misch-Logik
|
||||
│ ├── database.py # Kapselung aller SQLite-Zugriffe (ATTACH core + user_data.db)
|
||||
│ ├── progression.py # XP-Kurve, Prestige-Ränge, Chip-Skalierung & Divine Punishment
|
||||
│ ├── resource_manager.py # Dateipfad-Auflösung für Karten-Themes, Bilder & Sounds
|
||||
│ └── sound_manager.py # Pygame-Mixer für Musik-Streams & SFX-Kanäle
|
||||
├── resources/
|
||||
│ ├── code_res/
|
||||
│ │ ├── game_constants.py # Central constants, categories, colors & balancing values
|
||||
│ │ ├── i18n.py # Localization cache & string formatting
|
||||
│ │ ├── sql_queries.py # Centralized SQL statements
|
||||
│ │ ├── internal_base.sql # Complete SQL seed dump for static data
|
||||
│ │ └── internal_base.db # Compiled read-only SQLite core database
|
||||
│ ├── images/ # UI assets & card decks
|
||||
│ └── sounds/ # Music tracks & sound effects
|
||||
│ │ ├── game_constants.py # Zentrale Konstanten, Farbpalette & Spiel-Konfigurationen
|
||||
│ │ ├── i18n.py # Übersetzungs-Cache & Sprachumschaltung (DE/EN)
|
||||
│ │ ├── sql_queries.py # Alle SQL-Statements & User-DB-DDL
|
||||
│ │ ├── internal_base.sql # Vollständiger SQL-Seed (nur für manuelle DB-Neuerstellung)
|
||||
│ │ └── internal_base.db # Fertig mitgelieferte Read-Only-Stammdatenbank
|
||||
│ ├── cards/default/ # Spielkarten-Grafiken & Kartenrücken
|
||||
│ ├── fonts/ # Lokale TTF-Schriften (OldLondon.ttf, OldLondonAlternate.ttf)
|
||||
│ ├── images/ # UI-Grafiken, Banner (title.jpg), Pokertisch, GIFs & game_icon.ico
|
||||
│ └── sounds/ # Musik (Beyond_The_Iron_Gate, The_Midnight_Hand) & SFX
|
||||
├── view/
|
||||
│ ├── main_window.py # Root window, geometry persistence & global ttk styles
|
||||
│ ├── assets_manager.py # Image & animated GIF cache
|
||||
│ ├── dialogs/ # Modal dialogs (e.g., Audio settings)
|
||||
│ ├── main_window.py # Hauptfenster-Container & Hintergrund-Skalierung
|
||||
│ ├── assets_manager.py # PIL/ImageTk-Cache für Karten, Banner, Buttons & GIF-Frames
|
||||
│ ├── font_loader.py # Plattformübergreifender TTF-Loader & Georgia->OldLondon-Bridge
|
||||
│ ├── window_state.py # Speicherung/Wiederherstellung von Fenstergröße & Position
|
||||
│ ├── dialogs/ # Globale Overlays (z. B. AudioSettingsDialog)
|
||||
│ ├── menus/ # LoginView, MainMenuView, StatisticsView
|
||||
│ └── widgets/ # Reusable UI widgets (ImageButton w/ gray filter, StatsBoard, BotSetup)
|
||||
│ └── widgets/ # ImageButton, BotSetupWidget, StatsBoardWidget, InfoBadge
|
||||
└── games/
|
||||
└── blackjack/ # Blackjack – Devil's Gambit module (incl. README & StatsView)
|
||||
```
|
||||
├── blackjack/ # Eigenständiges Blackjack-Modul (MVC + eigene README.md)
|
||||
└── poker/ # Eigenständiges 6-Max Texas Hold'em-Modul (MVC + eigene README.md)
|
||||
~~~
|
||||
|
||||
### Setup & Launch
|
||||
---
|
||||
|
||||
1. **Install dependencies:**
|
||||
```bash
|
||||
### 5. Installation, Entwicklung & Build
|
||||
|
||||
#### A. Fertiges Spiel installieren (Empfohlen)
|
||||
Für normale Spieler ist **keine** Python-Installation erforderlich:
|
||||
1. Lade das passende Archiv für dein Betriebssystem (**Windows**, **Linux / ChromeOS** oder **macOS**) direkt unter [**Releases**](../../releases) herunter.
|
||||
2. Entpacke das Archiv in einen beliebigen Ordner und starte die ausführbare Datei. Spielstände (`user_data.db`) werden automatisch lokal angelegt.
|
||||
|
||||
#### B. Direkt aus dem Quellcode starten (Entwicklung)
|
||||
Voraussetzung ist **Python 3.11+** (inkl. `tkinter`):
|
||||
~~~bash
|
||||
pip install pillow pygame
|
||||
```
|
||||
2. **Build or update `internal_base.db` from the SQL seed:**
|
||||
```powershell
|
||||
sqlite3 resources/code_res/internal_base.db ".read resources/code_res/internal_base.sql"
|
||||
```
|
||||
3. **Run the application:**
|
||||
```bash
|
||||
python main.py
|
||||
```
|
||||
python3 main.py
|
||||
~~~
|
||||
|
||||
### Game Manuals
|
||||
* [Blackjack – Devil's Gambit (`games/blackjack/README.md`)](games/blackjack/README.md)
|
||||
#### C. Lokales Build-Skript (Einzel-OS & Cross-Platform)
|
||||
Über das mitgelieferte Build-Skript lassen sich eigenständige Pakete inkl. aller Ressourcen (`resources/`) erzeugen. Über Parameter kann gesteuert werden, ob nur für das aktuell laufende System oder für alle Zielplattformen gebaut wird:
|
||||
~~~bash
|
||||
# Nur für das aktuell genutzte Betriebssystem bauen:
|
||||
python3 build.py --target current
|
||||
|
||||
# Für alle unterstützten Zielsysteme bauen (Windows, Linux/ChromeOS, macOS):
|
||||
python3 build.py --target all
|
||||
~~~
|
||||
|
||||
#### D. Hinweis zur Stammdatenbank (`internal_base.db`)
|
||||
Die Datei `resources/code_res/internal_base.db` wird **komplett fertig und einsatzbereit mitgeliefert** – im normalen Betrieb oder beim Bauen muss nichts an der Datenbank gemacht werden.
|
||||
Die Datei `internal_base.sql` enthält den gesamten Datenbestand als Voll-Backup und wird **ausschließlich dann** benötigt, wenn man die Stammdatenbank absichtlich von Hand modifiziert oder beschädigt hat und sie komplett frisch aufbauen möchte:
|
||||
~~~bash
|
||||
sqlite3 resources/code_res/internal_base.db < resources/code_res/internal_base.sql
|
||||
~~~
|
||||
|
||||
---
|
||||
|
||||
### 6. Architektur-Richtlinien
|
||||
1. **Striktes 1-Klasse-pro-Datei-Prinzip** für klare Zuständigkeiten.
|
||||
2. **Keine Hardcodings:** Alle UI-Texte (`DE`/`EN`) liegen in `base_i18n`, SQL-Abfragen in `sql_queries.py`, Konstanten in `game_constants.py`.
|
||||
3. **Plugin-Einstiegspunkt:** Jedes Spielmodul besitzt eine `start.py` mit `GAME_TITLE_KEY`, `GAME_FOLDER_ID`, `GAME_CATEGORY` und `start_game(context)` und wird automatisch vom `GameLoader` eingebunden.
|
||||
|
||||
---
|
||||
---
|
||||
|
||||
## English
|
||||
|
||||
### 1. Project Overview
|
||||
**The Goth Cardgame Collection** is a modular desktop card game suite crafted in a dark Gothic aesthetic using **Python 3.11+**, **Tkinter**, **Pillow (PIL)**, **Pygame (Audio)**, and **SQLite3**.
|
||||
Every game runs as a self-contained module with **strictly isolated progression (XP & Prestige Ranks)**, dedicated statistics, and—for gambling titles—an independent Gold pouch economy with lasting consequences.
|
||||
|
||||
---
|
||||
|
||||
### 2. Core Features & Architecture
|
||||
|
||||
* **Flat 4-Category Navigation (no nested subcategories):**
|
||||
* **Luck (`luck`):** High-consequence table games with dedicated Gold pouches, *Divine Punishment*, and *The Devil's Deal* (**Blackjack**, **Texas Hold'em**).
|
||||
* **Solo (`solo`):** Skill-based solitaire classics without Gold requirements, governed by dedicated progression rules (*Klondike*, *FreeCell*, *Spider Solitaire* — prepared).
|
||||
* **Party - Offline (`party_offline`):** Local parlor card games against AI personalities (planned).
|
||||
* **Online (`online`):** Multiplayer rooms & unleashed *Deity*-tier bots without hand-holding (planned).
|
||||
* **Per-Game Prestige System:**
|
||||
* **260 Prestige Ranks** (0–258 across Roman tiers `I–V`, followed by uncapped **Deity** levels from rank 259 onward), tracked independently per game (`game_progress`).
|
||||
* **Isolated Gold Economy, Divine Punishment & The Devil's Deal:**
|
||||
* Up to **5 dedicated Gold Pouches** per gambling game and profile (`1,000 Gold` starting bankroll each).
|
||||
* **XP-to-Gold Exchange:** Base rate of `10,000 XP` for `+10 Gold` drawn strictly from that specific game's XP pool.
|
||||
* **Divine Punishment:** Once a profile has ever reached *Deity* in a game, exchanging XP costs $10\times$ the average XP of the previous level, dropping no lower than the floor of *Creator Spirit V*.
|
||||
* **The Devil's Deal:** At the *Creator Spirit V* floor, players may permanently sacrifice another soul profile (holding at least **Support I** in that **exact same game**) for `+10 Gold`. Active pacts lock navigation and enforce auto-save/resume until the hand is resolved.
|
||||
* **7 AI Difficulty Tiers (Level 0 to Level 6 "Deity"):**
|
||||
* Configurable opponent seats with persistent names and AI levels per game (`bot_configs`).
|
||||
* **Gothic UI, Bundled Fonts & Cross-Platform Integration:**
|
||||
* Runtime `.ttf` font loader (`OldLondon.ttf`, `OldLondonAlternate.ttf`) requiring zero OS-level font installation on **Windows**, **Linux**, **ChromeOS (Crostini)**, and **macOS**.
|
||||
* Cross-platform window & taskbar icon support (`game_icon.ico`) plus automatic window size, position, and maximized/fullscreen persistence (`WindowStatePersistence`).
|
||||
* Live **DE / EN** localization and dual-channel audio controls (Ambiance/Music & SFX).
|
||||
|
||||
---
|
||||
|
||||
### 3. Included & Planned Modules
|
||||
|
||||
| Category | Game | Status | Variants & Highlights | Module Docs |
|
||||
| :--- | :--- | :--- | :--- | :--- |
|
||||
| **Luck** | **Blackjack** | Playable | *Classic* (2 Decks) & *High Stakes* (6 Decks), up to 3 Bots, Devil's Gambit betting tree, Split/Double, `7-7-7` instant win | [`games/blackjack/README.md`](games/blackjack/README.md) |
|
||||
| **Luck** | **Texas Hold'em** | Playable | *Classic* & *High Stakes*, 6-Max Arena (1–5 Bots), equal entry ante, Pre-Flop to Showdown, All-In & Side Pots, info tooltips | [`games/poker/README.md`](games/poker/README.md) |
|
||||
| **Solo** | **Klondike** | Planned | *Draw 1* & *Draw 3* (core DB variants seeded) | — |
|
||||
| **Solo** | **FreeCell** | Planned | *Standard* (core DB variant seeded) | — |
|
||||
| **Solo** | **Spider Solitaire** | Planned | *1 Suit*, *2 Suits*, *4 Suits* (core DB variants seeded) | — |
|
||||
|
||||
---
|
||||
|
||||
### 4. Installation, Development & Build
|
||||
|
||||
#### A. End-User Installation (Recommended)
|
||||
No Python setup is required to play:
|
||||
1. Download the pre-built release archive for your platform (**Windows**, **Linux / ChromeOS**, or **macOS**) from [**Releases**](../../releases).
|
||||
2. Extract the archive and launch the executable. Save data (`user_data.db`) is created automatically in the local directory.
|
||||
|
||||
#### B. Running from Source (Development)
|
||||
Requires **Python 3.11+** (with `tkinter`):
|
||||
~~~bash
|
||||
pip install pillow pygame
|
||||
python3 main.py
|
||||
~~~
|
||||
|
||||
#### C. Local & Cross-Platform Build Script
|
||||
The repository includes a build script capable of packaging standalone builds either quickly for your active host OS or across all supported target platforms via CLI flags:
|
||||
~~~bash
|
||||
# Build only for the currently running OS:
|
||||
python3 build.py --target current
|
||||
|
||||
# Build release packages for all target platforms:
|
||||
python3 build.py --target all
|
||||
~~~
|
||||
|
||||
#### D. Static Core Database (`internal_base.db`)
|
||||
`resources/code_res/internal_base.db` is **shipped ready-to-use** out of the box—no database setup step is needed.
|
||||
The full seed script `internal_base.sql` is only required if you intentionally edited the static core data yourself or manually corrupted `internal_base.db` and wish to rebuild it from scratch:
|
||||
~~~bash
|
||||
sqlite3 resources/code_res/internal_base.db < resources/code_res/internal_base.sql
|
||||
~~~
|
||||
|
|
@ -0,0 +1,140 @@
|
|||
@echo off
|
||||
setlocal EnableDelayedExpansion
|
||||
REM =============================================================================
|
||||
REM The Goth Cardgame Collection - One-File Build Script (Windows)
|
||||
REM Output: dist\windows\TheGothCardgameCollection.exe
|
||||
REM Usage: build_scripts\build.bat [--current | --all | --clean]
|
||||
REM =============================================================================
|
||||
|
||||
REM Immer ins Projekt-Hauptverzeichnis wechseln (auch bei Doppelklick auf build.bat)
|
||||
cd /d "%~dp0.."
|
||||
set "PROJECT_ROOT=%CD%"
|
||||
set "APP_NAME=TheGothCardgameCollection"
|
||||
set "MODE=%~1"
|
||||
if "%MODE%"=="" set "MODE=--current"
|
||||
|
||||
if /I "%MODE%"=="--clean" (
|
||||
echo [CLEAN] Entferne temporaere Build-Ordner...
|
||||
if exist "build" rmdir /s /q "build"
|
||||
if exist ".venv_build_win" rmdir /s /q ".venv_build_win"
|
||||
echo [OK] Aufgeraeumt ^(dist\ blieb erhalten^).
|
||||
exit /b 0
|
||||
)
|
||||
|
||||
echo ============================================================
|
||||
echo Building %APP_NAME%.exe ^(Single-File^) -^> dist\windows\
|
||||
echo ============================================================
|
||||
|
||||
REM Python-Befehl ermitteln (python, py -3 oder python3)
|
||||
set "PY_CMD="
|
||||
where python >nul 2>nul && (
|
||||
python -c "import sys; sys.exit(0)" >nul 2>nul && set "PY_CMD=python"
|
||||
)
|
||||
if "%PY_CMD%"=="" (
|
||||
where py >nul 2>nul && (
|
||||
py -3 -c "import sys; sys.exit(0)" >nul 2>nul && set "PY_CMD=py -3"
|
||||
)
|
||||
)
|
||||
if "%PY_CMD%"=="" (
|
||||
where python3 >nul 2>nul && (
|
||||
python3 -c "import sys; sys.exit(0)" >nul 2>nul && set "PY_CMD=python3"
|
||||
)
|
||||
)
|
||||
|
||||
if "%PY_CMD%"=="" (
|
||||
echo [ERROR] Keine funktionierende Python-3-Installation im PATH gefunden!
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM Isolierte Build-Venv anlegen & Dependencies automatisch installieren
|
||||
set "VENV_DIR=%PROJECT_ROOT%\.venv_build_win"
|
||||
if not exist "%VENV_DIR%\Scripts\python.exe" (
|
||||
echo [1/3] Erstelle isolierte Build-Umgebung ^(.venv_build_win^)...
|
||||
%PY_CMD% -m venv "%VENV_DIR%"
|
||||
if errorlevel 1 (
|
||||
echo [ERROR] Konnte virtuelle Umgebung nicht erstellen.
|
||||
exit /b 1
|
||||
)
|
||||
)
|
||||
|
||||
set "VENV_PY=%VENV_DIR%\Scripts\python.exe"
|
||||
|
||||
echo [2/3] Pruefe ^& aktualisiere Build-Abhaengigkeiten ^(PyInstaller, Pillow, Pygame^)...
|
||||
"%VENV_PY%" -m pip install --upgrade --quiet pip
|
||||
"%VENV_PY%" -m pip install --quiet pyinstaller pillow pygame
|
||||
if errorlevel 1 (
|
||||
echo [ERROR] Installation der Build-Abhaengigkeiten fehlgeschlagen.
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
set "DIST_DIR=%PROJECT_ROOT%\dist\windows"
|
||||
set "WORK_DIR=%PROJECT_ROOT%\build\windows"
|
||||
if not exist "%DIST_DIR%" mkdir "%DIST_DIR%"
|
||||
if not exist "%WORK_DIR%" mkdir "%WORK_DIR%"
|
||||
|
||||
set "ICON_ARG="
|
||||
if exist "resources\images\game_icon.ico" (
|
||||
set "ICON_ARG=--icon resources\images\game_icon.ico"
|
||||
)
|
||||
|
||||
echo [3/3] Kompiliere kompakte Einzeldatei...
|
||||
"%VENV_PY%" -m PyInstaller ^
|
||||
--noconfirm ^
|
||||
--clean ^
|
||||
--onefile ^
|
||||
--windowed ^
|
||||
--name "%APP_NAME%" ^
|
||||
--distpath "%DIST_DIR%" ^
|
||||
--workpath "%WORK_DIR%" ^
|
||||
--specpath "%WORK_DIR%" ^
|
||||
%ICON_ARG% ^
|
||||
--add-data "resources;resources" ^
|
||||
--add-data "games;games" ^
|
||||
--collect-submodules games ^
|
||||
--collect-submodules controller ^
|
||||
--collect-submodules models ^
|
||||
--collect-submodules view ^
|
||||
--collect-submodules resources ^
|
||||
--hidden-import tkinter ^
|
||||
--hidden-import tkinter.ttk ^
|
||||
--hidden-import tkinter.font ^
|
||||
--hidden-import sqlite3 ^
|
||||
--hidden-import PIL._tkinter_finder ^
|
||||
--exclude-module matplotlib ^
|
||||
--exclude-module numpy ^
|
||||
--exclude-module scipy ^
|
||||
--exclude-module pandas ^
|
||||
--exclude-module pytest ^
|
||||
--exclude-module unittest ^
|
||||
--exclude-module pydoc ^
|
||||
main.py
|
||||
|
||||
if errorlevel 1 (
|
||||
echo [ERROR] PyInstaller-Build fehlgeschlagen!
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
if exist "%WORK_DIR%" rmdir /s /q "%WORK_DIR%"
|
||||
|
||||
echo.
|
||||
echo [DONE] Fertige ausfuehrbare Datei liegt bereit unter:
|
||||
echo dist\windows\%APP_NAME%.exe
|
||||
|
||||
REM Optionaler Linux-Build via WSL, falls --all uebergeben wurde
|
||||
if /I "%MODE%"=="--all" (
|
||||
echo.
|
||||
echo ------------------------------------------------------------
|
||||
echo Pruefe optionalen Linux-Build via WSL...
|
||||
echo ------------------------------------------------------------
|
||||
where wsl >nul 2>nul
|
||||
if not errorlevel 1 (
|
||||
echo [WSL] Starte Linux-Build -^> dist/linux/%APP_NAME% ...
|
||||
wsl bash ./build_scripts/build.sh --current
|
||||
) else (
|
||||
echo [SKIP] WSL nicht verfuegbar - ueberspringe Linux-Build.
|
||||
)
|
||||
)
|
||||
|
||||
endlocal
|
||||
exit /b 0
|
||||
|
|
@ -0,0 +1,135 @@
|
|||
#!/usr/bin/env bash
|
||||
# -*- coding: utf-8 -*-
|
||||
# =============================================================================
|
||||
# The Goth Cardgame Collection - One-File Build Script (Linux / ChromeOS / macOS)
|
||||
# Output: dist/<os>/TheGothCardgameCollection
|
||||
# Usage: ./build_scripts/build.sh [--current | --all | --clean]
|
||||
# =============================================================================
|
||||
set -euo pipefail
|
||||
|
||||
# Immer ins Projekt-Hauptverzeichnis wechseln (egal von wo das Skript gestartet wird)
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
||||
cd "${PROJECT_ROOT}"
|
||||
|
||||
APP_NAME="TheGothCardgameCollection"
|
||||
MODE="${1:---current}"
|
||||
|
||||
if [[ "${MODE}" == "--clean" ]]; then
|
||||
echo "[CLEAN] Entferne temporäre Build-Ordner..."
|
||||
rm -rf build .venv_build_linux .venv_build_macos
|
||||
echo "[OK] Aufgeräumt (dist/ blieb erhalten)."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Ziel-OS automatisch erkennen
|
||||
UNAME_OUT="$(uname -s)"
|
||||
case "${UNAME_OUT}" in
|
||||
Linux*) OS_NAME="linux" ;;
|
||||
Darwin*) OS_NAME="macos" ;;
|
||||
*) echo "[ERROR] Unbekanntes Unix-System: ${UNAME_OUT}"; exit 1 ;;
|
||||
esac
|
||||
|
||||
echo "============================================================"
|
||||
echo " Building ${APP_NAME} (Single-File) -> dist/${OS_NAME}/"
|
||||
echo "============================================================"
|
||||
|
||||
# Prüfen, ob python3 + tkinter auf dem Build-Rechner vorhanden sind
|
||||
if ! command -v python3 >/dev/null 2>&1; then
|
||||
echo "[ERROR] python3 nicht gefunden."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! python3 -c "import tkinter" >/dev/null 2>&1; then
|
||||
echo "[ERROR] Das Python-Modul 'tkinter' fehlt auf diesem Build-System."
|
||||
echo " Debian/Ubuntu/ChromeOS: sudo apt update && sudo apt install -y python3-tk"
|
||||
echo " Fedora: sudo dnf install -y python3-tkinter"
|
||||
echo " Arch: sudo pacman -S tk"
|
||||
echo " macOS (Homebrew): brew install python-tk"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Isolierte Build-Venv anlegen & Dependencies automatisch installieren
|
||||
VENV_DIR="${PROJECT_ROOT}/.venv_build_${OS_NAME}"
|
||||
if [[ ! -d "${VENV_DIR}" ]]; then
|
||||
echo "[1/3] Erstelle isolierte Build-Umgebung (${VENV_DIR})..."
|
||||
python3 -m venv "${VENV_DIR}"
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC1091
|
||||
source "${VENV_DIR}/bin/activate"
|
||||
|
||||
echo "[2/3] Prüfe & aktualisiere Build-Abhängigkeiten (PyInstaller, Pillow, Pygame)..."
|
||||
python -m pip install --upgrade --quiet pip
|
||||
python -m pip install --quiet pyinstaller pillow pygame
|
||||
|
||||
# Ziel- & Arbeitsverzeichnisse vorbereiten
|
||||
DIST_DIR="${PROJECT_ROOT}/dist/${OS_NAME}"
|
||||
WORK_DIR="${PROJECT_ROOT}/build/${OS_NAME}"
|
||||
mkdir -p "${DIST_DIR}" "${WORK_DIR}"
|
||||
|
||||
ICON_ARGS=()
|
||||
if [[ -f "resources/images/game_icon.ico" ]]; then
|
||||
ICON_ARGS=(--icon "resources/images/game_icon.ico")
|
||||
fi
|
||||
|
||||
STRIP_ARGS=()
|
||||
if command -v strip >/dev/null 2>&1; then
|
||||
STRIP_ARGS=(--strip)
|
||||
fi
|
||||
|
||||
echo "[3/3] Kompiliere kompakte Einzeldatei..."
|
||||
python -m PyInstaller \
|
||||
--noconfirm \
|
||||
--clean \
|
||||
--onefile \
|
||||
--windowed \
|
||||
"${STRIP_ARGS[@]}" \
|
||||
--name "${APP_NAME}" \
|
||||
--distpath "${DIST_DIR}" \
|
||||
--workpath "${WORK_DIR}" \
|
||||
--specpath "${WORK_DIR}" \
|
||||
"${ICON_ARGS[@]}" \
|
||||
--add-data "resources:resources" \
|
||||
--add-data "games:games" \
|
||||
--collect-submodules games \
|
||||
--collect-submodules controller \
|
||||
--collect-submodules models \
|
||||
--collect-submodules view \
|
||||
--collect-submodules resources \
|
||||
--hidden-import tkinter \
|
||||
--hidden-import tkinter.ttk \
|
||||
--hidden-import tkinter.font \
|
||||
--hidden-import sqlite3 \
|
||||
--hidden-import PIL._tkinter_finder \
|
||||
--exclude-module matplotlib \
|
||||
--exclude-module numpy \
|
||||
--exclude-module scipy \
|
||||
--exclude-module pandas \
|
||||
--exclude-module pytest \
|
||||
--exclude-module unittest \
|
||||
--exclude-module pydoc \
|
||||
main.py
|
||||
|
||||
deactivate
|
||||
|
||||
chmod +x "${DIST_DIR}/${APP_NAME}" 2>/dev/null || true
|
||||
rm -rf "${WORK_DIR}"
|
||||
|
||||
echo ""
|
||||
echo "[DONE] Fertige ausführbare Datei liegt bereit unter:"
|
||||
echo " dist/${OS_NAME}/${APP_NAME}"
|
||||
|
||||
# Optionaler Cross-Build via Wine (falls --all übergeben wurde und Wine + Python installiert ist)
|
||||
if [[ "${MODE}" == "--all" && "${OS_NAME}" == "linux" ]]; then
|
||||
echo ""
|
||||
echo "------------------------------------------------------------"
|
||||
echo " Prüfe optionalen Windows-Cross-Build via Wine..."
|
||||
echo "------------------------------------------------------------"
|
||||
if command -v wine >/dev/null 2>&1 && wine python --version >/dev/null 2>&1; then
|
||||
echo "[WINE] Starte Windows-Build -> dist/windows/${APP_NAME}.exe ..."
|
||||
wine cmd /c "build_scripts\\build.bat --current"
|
||||
else
|
||||
echo "[SKIP] Wine mit Windows-Python nicht gefunden – überspringe Windows-Cross-Build."
|
||||
fi
|
||||
fi
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
BEGIN TRANSACTION;
|
||||
|
||||
INSERT OR REPLACE INTO base_i18n (key, lang, val) VALUES
|
||||
('bj_no_account_item', 'DE', '— Noch kein Konto angelegt —'),
|
||||
('bj_gold_display_lbl', 'DE', 'Aktuelles Guthaben: {0} Gold'),
|
||||
('bj_gold_display_none', 'DE', 'Aktuelles Guthaben: — (Bitte erst ein Konto anlegen)'),
|
||||
('bj_stats_view_topbar', 'DE', 'Blackjack – Konto-Statistiken'),
|
||||
('bj_stats_select_acc_lbl', 'DE', 'Goldbeutel auswählen:'),
|
||||
|
||||
('bj_no_account_item', 'EN', '— No account created yet —'),
|
||||
('bj_gold_display_lbl', 'EN', 'Current Balance: {0} Gold'),
|
||||
('bj_gold_display_none', 'EN', 'Current Balance: — (Create an account first)'),
|
||||
('bj_stats_view_topbar', 'EN', 'Blackjack – Account Statistics'),
|
||||
('bj_stats_select_acc_lbl', 'EN', 'Select Gold Pouch:');
|
||||
|
||||
COMMIT;
|
||||
|
|
@ -1,146 +0,0 @@
|
|||
BEGIN TRANSACTION;
|
||||
|
||||
INSERT OR REPLACE INTO base_i18n (key, lang, val) VALUES
|
||||
-- =========================================================================
|
||||
-- DE: TEXAS HOLD'EM POKER (Menü, Konten, 6-Max Tisch, Hände & Ergebnis)
|
||||
-- =========================================================================
|
||||
('pk_menu_topbar', 'DE', 'Texas Hold''em – Konten & 6-Max Tischauswahl'),
|
||||
('pk_stats_view_topbar', 'DE', 'Texas Hold''em – Konto-Statistiken'),
|
||||
('pk_sec1_title', 'DE', '1. Poker-Goldkonto ({0}/{1} Beutel • Start: {2} Gold)'),
|
||||
('pk_bots_sec_title', 'DE', '2. Gegner am 6-Max-Tisch (mind. 1 bis max. 5 Bots)'),
|
||||
('pk_sec3_title', 'DE', '3. Tischvariante wählen'),
|
||||
('pk_default_acc_name', 'DE', 'Pokerbeutel #{0}'),
|
||||
('pk_acc_limit_info', 'DE', 'Max. {0} Goldbeutel. Blinds ab {1}/{2} Gold, No-Limit mit All-In & Side-Pots. Tausch: {3} XP → +{4} Gold.'),
|
||||
('pk_err_duplicate_name', 'DE', 'Ein Poker-Konto mit diesem Namen existiert bereits.'),
|
||||
('pk_err_need_one_bot', 'DE', 'Beim Poker muss mindestens 1 Gegner am Tisch sitzen!'),
|
||||
('pk_variant_desc', 'DE', '6-Max No-Limit • Blinds: {0}/{1} Gold • Min. Buy-In: {2} Gold • Side-Pots aktiv'),
|
||||
('pk_filter_all_tables', 'DE', 'Dieses Konto (Alle Poker-Tische)'),
|
||||
('pk_header_gold', 'DE', 'Konto ''{0}'': {1} Gold'),
|
||||
|
||||
-- Straßen & Tisch-Banner
|
||||
('pk_pot_banner', 'DE', 'GESAMT-POT: {0} Gold | Phase: {1} | Aktueller Einsatz: {2} Gold'),
|
||||
('pk_street_PREFLOP', 'DE', 'Pre-Flop'),
|
||||
('pk_street_FLOP', 'DE', 'Flop (3 Karten)'),
|
||||
('pk_street_TURN', 'DE', 'Turn (4. Karte)'),
|
||||
('pk_street_RIVER', 'DE', 'River (5. Karte)'),
|
||||
('pk_street_SHOWDOWN', 'DE', 'Showdown'),
|
||||
('pk_board_title', 'DE', 'Gemeinschaftskarten (Board)'),
|
||||
('pk_player_info', 'DE', 'Deine Hand: {0} | Runde: {1}g | Gesamt im Pot: {2}g{3}'),
|
||||
('pk_role_dealer', 'DE', ' [D]'),
|
||||
('pk_role_sb', 'DE', ' [SB]'),
|
||||
('pk_role_bb', 'DE', ' [BB]'),
|
||||
('pk_state_folded', 'DE', ' [GEPASST]'),
|
||||
('pk_state_allin', 'DE', ' [ALL-IN]'),
|
||||
|
||||
-- Spieler-Steuerung
|
||||
('pk_turn_prompt_check', 'DE', 'Dein Zug ({0}): Schieben (Check), Anspielen (Raise), All-In oder Passen.'),
|
||||
('pk_turn_prompt_call', 'DE', 'Dein Zug ({0}): +{1} Gold zum Mitgehen (Call) — oder Erhöhen, All-In, Passen.'),
|
||||
('pk_btn_fold', 'DE', 'Passen (Fold)'),
|
||||
('pk_btn_check', 'DE', 'Schieben (Check)'),
|
||||
('pk_btn_call', 'DE', 'Mitgehen (+{0})'),
|
||||
('pk_btn_allin', 'DE', 'ALL-IN (+{0})'),
|
||||
('pk_raise_lbl', 'DE', 'Erhöhen +:'),
|
||||
|
||||
-- Bots am 6-Max Tisch
|
||||
('pk_bot_turn_status', 'DE', '{0} überlegt...'),
|
||||
('pk_bot_stack_lbl', 'DE', 'Stack: {0}g • Einsatz: {1}g'),
|
||||
('pk_bot_act_sb', 'DE', 'Small Blind ({0}g)'),
|
||||
('pk_bot_act_bb', 'DE', 'Big Blind ({0}g)'),
|
||||
('pk_bot_act_check', 'DE', 'Schiebt (Check)'),
|
||||
('pk_bot_act_call', 'DE', 'Geht mit (+{0}g)'),
|
||||
('pk_bot_act_raise', 'DE', 'Erhöht (+{0}g)'),
|
||||
('pk_bot_act_allin', 'DE', 'ALL-IN! ({0}g)'),
|
||||
('pk_bot_act_fold', 'DE', 'Gepasst'),
|
||||
('pk_showdown_running', 'DE', 'Alle verbleibenden Karten werden aufgedeckt — Showdown!'),
|
||||
|
||||
-- Poker Hand-Ränge (0..9)
|
||||
('pk_hand_0', 'DE', 'Höchste Karte (High Card)'),
|
||||
('pk_hand_1', 'DE', 'Ein Paar (One Pair)'),
|
||||
('pk_hand_2', 'DE', 'Zwei Paare (Two Pair)'),
|
||||
('pk_hand_3', 'DE', 'Drilling (Three of a Kind)'),
|
||||
('pk_hand_4', 'DE', 'Straße (Straight)'),
|
||||
('pk_hand_5', 'DE', 'Flush'),
|
||||
('pk_hand_6', 'DE', 'Full House'),
|
||||
('pk_hand_7', 'DE', 'Vierling (Four of a Kind)'),
|
||||
('pk_hand_8', 'DE', 'Straight Flush'),
|
||||
('pk_hand_9', 'DE', '★ ROYAL FLUSH ★'),
|
||||
|
||||
-- Ergebnis-Popup
|
||||
('pk_popup_player_won', 'DE', 'Du gewinnst den Pot! ({0})'),
|
||||
('pk_popup_split_won', 'DE', 'Split-Pot gewonnen! ({0})'),
|
||||
('pk_popup_bot_won', 'DE', '{0} gewinnt ({1})'),
|
||||
('pk_popup_fold_win', 'DE', 'Alle Gegner haben gepasst'),
|
||||
('pk_popup_bot_gain', 'DE', 'Pot-Gewinn von {0}: +{1} Gold'),
|
||||
|
||||
-- =========================================================================
|
||||
-- EN: TEXAS HOLD'EM POKER
|
||||
-- =========================================================================
|
||||
('pk_menu_topbar', 'EN', 'Texas Hold''em – Accounts & 6-Max Table Selection'),
|
||||
('pk_stats_view_topbar', 'EN', 'Texas Hold''em – Account Statistics'),
|
||||
('pk_sec1_title', 'EN', '1. Poker Gold Account ({0}/{1} Pouches • Start: {2} Gold)'),
|
||||
('pk_bots_sec_title', 'EN', '2. Opponents at 6-Max Table (min. 1 to max. 5 Bots)'),
|
||||
('pk_sec3_title', 'EN', '3. Choose Table Variant'),
|
||||
('pk_default_acc_name', 'EN', 'Poker Pouch #{0}'),
|
||||
('pk_acc_limit_info', 'EN', 'Max {0} Pouches. Blinds from {1}/{2} Gold, No-Limit with All-In & Side Pots. Exchange: {3} XP → +{4} Gold.'),
|
||||
('pk_err_duplicate_name', 'EN', 'A Poker account with this name already exists.'),
|
||||
('pk_err_need_one_bot', 'EN', 'At least 1 opponent must sit at a Poker table!'),
|
||||
('pk_variant_desc', 'EN', '6-Max No-Limit • Blinds: {0}/{1} Gold • Min Buy-In: {2} Gold • Side Pots active'),
|
||||
('pk_filter_all_tables', 'EN', 'This Account (All Poker Tables)'),
|
||||
('pk_header_gold', 'EN', 'Account ''{0}'': {1} Gold'),
|
||||
|
||||
-- Streets & Table Banner
|
||||
('pk_pot_banner', 'EN', 'TOTAL POT: {0} Gold | Street: {1} | Current Bet: {2} Gold'),
|
||||
('pk_street_PREFLOP', 'EN', 'Pre-Flop'),
|
||||
('pk_street_FLOP', 'EN', 'Flop (3 Cards)'),
|
||||
('pk_street_TURN', 'EN', 'Turn (4th Card)'),
|
||||
('pk_street_RIVER', 'EN', 'River (5th Card)'),
|
||||
('pk_street_SHOWDOWN', 'EN', 'Showdown'),
|
||||
('pk_board_title', 'EN', 'Community Cards (Board)'),
|
||||
('pk_player_info', 'EN', 'Your Hand: {0} | Street: {1}g | Total in Pot: {2}g{3}'),
|
||||
('pk_role_dealer', 'EN', ' [D]'),
|
||||
('pk_role_sb', 'EN', ' [SB]'),
|
||||
('pk_role_bb', 'EN', ' [BB]'),
|
||||
('pk_state_folded', 'EN', ' [FOLDED]'),
|
||||
('pk_state_allin', 'EN', ' [ALL-IN]'),
|
||||
|
||||
-- Player Controls
|
||||
('pk_turn_prompt_check', 'EN', 'Your turn ({0}): Check, Bet/Raise, All-In, or Fold.'),
|
||||
('pk_turn_prompt_call', 'EN', 'Your turn ({0}): +{1} Gold to Call — or Raise, All-In, Fold.'),
|
||||
('pk_btn_fold', 'EN', 'Fold'),
|
||||
('pk_btn_check', 'EN', 'Check'),
|
||||
('pk_btn_call', 'EN', 'Call (+{0})'),
|
||||
('pk_btn_allin', 'EN', 'ALL-IN (+{0})'),
|
||||
('pk_raise_lbl', 'EN', 'Raise +:'),
|
||||
|
||||
-- 6-Max Bots
|
||||
('pk_bot_turn_status', 'EN', '{0} is thinking...'),
|
||||
('pk_bot_stack_lbl', 'EN', 'Stack: {0}g • Bet: {1}g'),
|
||||
('pk_bot_act_sb', 'EN', 'Small Blind ({0}g)'),
|
||||
('pk_bot_act_bb', 'EN', 'Big Blind ({0}g)'),
|
||||
('pk_bot_act_check', 'EN', 'Checks'),
|
||||
('pk_bot_act_call', 'EN', 'Calls (+{0}g)'),
|
||||
('pk_bot_act_raise', 'EN', 'Raises (+{0}g)'),
|
||||
('pk_bot_act_allin', 'EN', 'ALL-IN! ({0}g)'),
|
||||
('pk_bot_act_fold', 'EN', 'Folded'),
|
||||
('pk_showdown_running', 'EN', 'Revealing remaining board cards — Showdown!'),
|
||||
|
||||
-- Poker Hand Ranks (0..9)
|
||||
('pk_hand_0', 'EN', 'High Card'),
|
||||
('pk_hand_1', 'EN', 'One Pair'),
|
||||
('pk_hand_2', 'EN', 'Two Pair'),
|
||||
('pk_hand_3', 'EN', 'Three of a Kind'),
|
||||
('pk_hand_4', 'EN', 'Straight'),
|
||||
('pk_hand_5', 'EN', 'Flush'),
|
||||
('pk_hand_6', 'EN', 'Full House'),
|
||||
('pk_hand_7', 'EN', 'Four of a Kind'),
|
||||
('pk_hand_8', 'EN', 'Straight Flush'),
|
||||
('pk_hand_9', 'EN', '★ ROYAL FLUSH ★'),
|
||||
|
||||
-- Result Popup
|
||||
('pk_popup_player_won', 'EN', 'You won the Pot! ({0})'),
|
||||
('pk_popup_split_won', 'EN', 'Split Pot Won! ({0})'),
|
||||
('pk_popup_bot_won', 'EN', '{0} Won ({1})'),
|
||||
('pk_popup_fold_win', 'EN', 'All opponents folded'),
|
||||
('pk_popup_bot_gain', 'EN', 'Pot profit of {0}: +{1} Gold');
|
||||
|
||||
COMMIT;
|
||||
|
|
@ -1,54 +0,0 @@
|
|||
BEGIN TRANSACTION;
|
||||
|
||||
INSERT OR REPLACE INTO base_i18n (key, lang, val) VALUES
|
||||
-- DE: Neutrale Spielerzeile (ohne Hand-Spoiler) & Hilfe-Header
|
||||
('pk_player_bet_only', 'DE', 'Position:{0} | Runde: {1}g | Gesamt im Pot: {2}g{3}'),
|
||||
('pk_role_player', 'DE', ' Spieler'),
|
||||
('pk_help_header', 'DE', 'Poker-Hände (1 = Beste)'),
|
||||
('pk_help_general_info', 'DE', 'Aus deinen 2 Handkarten und den 5 Gemeinschaftskarten zählt am Ende immer automatisch die beste 5er-Kombination (1 = höchste bis 10 = niedrigste).'),
|
||||
|
||||
-- DE: Erklärungen zu den 10 Kombinationen
|
||||
('pk_help_hand_9', 'DE', 'Royal Flush: 10, Bube, Dame, König und Ass in derselben Kartenfarbe. Die unschlagbar höchste Hand beim Poker!'),
|
||||
('pk_help_hand_8', 'DE', 'Straight Flush: Fünf aufeinanderfolgende Karten in genau derselben Farbe (z. B. 7-8-9-10-Bube in Pik).'),
|
||||
('pk_help_hand_7', 'DE', 'Vierling (Four of a Kind): Vier Karten desselben Werts (z. B. vier Könige) plus eine beliebige fünfte Beikarte.'),
|
||||
('pk_help_hand_6', 'DE', 'Full House: Kombination aus einem Drilling und einem Paar (z. B. drei Asse und zwei Neunen).'),
|
||||
('pk_help_hand_5', 'DE', 'Flush: Fünf beliebige Karten derselben Farbe (z. B. fünfmal Pik), nicht in direkter Reihenfolge.'),
|
||||
('pk_help_hand_4', 'DE', 'Straße (Straight): Fünf direkt aufeinanderfolgende Karten unterschiedlicher Farben (Ass zählt hoch nach König oder tief vor der 2).'),
|
||||
('pk_help_hand_3', 'DE', 'Drilling (Three of a Kind): Drei Karten desselben Werts (z. B. drei Könige) plus zwei ungebundene Beikarten.'),
|
||||
('pk_help_hand_2', 'DE', 'Zwei Paare (Two Pair): Zwei verschiedene Paare (z. B. zwei Asse und zwei Neunen) plus eine fünfte Beikarte.'),
|
||||
('pk_help_hand_1', 'DE', 'Ein Paar (One Pair): Zwei Karten mit gleichem Wert (z. B. zwei Könige) plus drei Beikarten.'),
|
||||
('pk_help_hand_0', 'DE', 'Höchste Karte (High Card): Passt keine Kombination, entscheidet die höchste Einzelkarte (Ass ist am höchsten).'),
|
||||
|
||||
-- DE: Erklärungen zu den Wett-Buttons
|
||||
('pk_tip_check', 'DE', 'Schieben / Halten (Check / Hold): Du setzt kein neues Gold, gibst deine Hand aber nicht auf und reichst den Zug weiter. Nur möglich, solange niemand erhöht hat.'),
|
||||
('pk_tip_call', 'DE', 'Mitgehen (Call): Du zahlst genau die fehlende Differenz zum aktuellen Höchsteinsatz in den Pot, um in der Runde zu bleiben.'),
|
||||
('pk_tip_raise', 'DE', 'Erhöhen (Raise): Du gleichst einen eventuellen Einsatz aus und legst zusätzlich den gewählten Betrag oben drauf, um Gegner unter Druck zu setzen.'),
|
||||
('pk_tip_allin', 'DE', 'ALL-IN: Du setzt deinen kompletten restlichen Tisch-Stack auf einmal in den Pot. Du kannst in dieser Hand nicht mehr herausgedrängt werden (Side-Pots greifen automatisch).'),
|
||||
('pk_tip_fold', 'DE', 'Passen (Fold): Du wirfst deine Karten für diese Runde ab. Bereits gesetztes Gold im Pot geht verloren, aber du musst keine weiteren Erhöhungen mehr bezahlen.'),
|
||||
|
||||
-- EN: Neutral player info & Help Header
|
||||
('pk_player_bet_only', 'EN', 'Position:{0} | Street: {1}g | Total in Pot: {2}g{3}'),
|
||||
('pk_role_player', 'EN', ' Seat'),
|
||||
('pk_help_header', 'EN', 'Poker Hands (1 = Best)'),
|
||||
('pk_help_general_info', 'EN', 'Out of your 2 hole cards and the 5 community cards, your best 5-card combination counts automatically at Showdown (1 = highest to 10 = lowest).'),
|
||||
|
||||
-- EN: Hand Rank Explanations
|
||||
('pk_help_hand_9', 'EN', 'Royal Flush: 10, Jack, Queen, King, and Ace of the exact same suit. The unbeatable best hand in Poker!'),
|
||||
('pk_help_hand_8', 'EN', 'Straight Flush: Five consecutive cards of the exact same suit (e.g. 7-8-9-10-J of Spades).'),
|
||||
('pk_help_hand_7', 'EN', 'Four of a Kind: Four cards of the same rank (e.g. four Kings) plus one kicker card.'),
|
||||
('pk_help_hand_6', 'EN', 'Full House: Three of a Kind combined with One Pair (e.g. three Aces and two Nines).'),
|
||||
('pk_help_hand_5', 'EN', 'Flush: Any five cards of the same suit (e.g. five Spades), not in sequential order.'),
|
||||
('pk_help_hand_4', 'EN', 'Straight: Five sequential cards of mixed suits (Ace can play high above King or low as A-2-3-4-5).'),
|
||||
('pk_help_hand_3', 'EN', 'Three of a Kind: Three cards of the same rank (e.g. three Kings) plus two kickers.'),
|
||||
('pk_help_hand_2', 'EN', 'Two Pair: Two different pairs of the same rank (e.g. two Aces and two Nines) plus one kicker.'),
|
||||
('pk_help_hand_1', 'EN', 'One Pair: Two cards of the same rank (e.g. two Kings) plus three kickers.'),
|
||||
('pk_help_hand_0', 'EN', 'High Card: If no combination is made, the highest single card decides (Ace is highest).'),
|
||||
|
||||
-- EN: Action Button Explanations
|
||||
('pk_tip_check', 'EN', 'Check (Hold): Stay in the hand without betting additional Gold and pass action to the next player. Only available when no bet is facing you.'),
|
||||
('pk_tip_call', 'EN', 'Call: Match the current highest street bet to stay active in the pot.'),
|
||||
('pk_tip_raise', 'EN', 'Raise: Match any current bet and add the chosen chip amount on top, forcing opponents to pay more or fold.'),
|
||||
('pk_tip_allin', 'EN', 'ALL-IN: Push your entire remaining table stack into the pot. You cannot be forced out of the hand (Side Pots are calculated automatically).'),
|
||||
('pk_tip_fold', 'EN', 'Fold: Discard your hand for this round. Any Gold already committed stays in the pot, but you pay nothing further.');
|
||||
|
||||
COMMIT;
|
||||
BIN
user_data.db
BIN
user_data.db
Binary file not shown.
Loading…
Reference in New Issue