readme update

This commit is contained in:
thw 2026-11-14 06:51:41 +01:00
parent 8c9db3631e
commit 80fdb0aa3b
1 changed files with 75 additions and 59 deletions

View File

@ -1,6 +1,6 @@
# † Blackjack – Devil's Gambit † # † Blackjack – Devil's Gambit †
**[Deutsch](#deutsch) | [English](#english)** [**Deutsch**](#deutsch) **| [English](#english)**
--- ---
@ -8,6 +8,7 @@
## 🇩🇪 Deutsch ## 🇩🇪 Deutsch
### Überblick ### Überblick
**Blackjack – Devil's Gambit** kombiniert klassische Vegas-Kartenregeln mit einem gnadenlosen Multi-Player-Goldpot, spiellevel-skalierten Erhöhungen, **Divine Punishment** auf Gottheit-Rang und dem unausweichlichen **Devil's Deal**. **Blackjack – Devil's Gambit** kombiniert klassische Vegas-Kartenregeln mit einem gnadenlosen Multi-Player-Goldpot, spiellevel-skalierten Erhöhungen, **Divine Punishment** auf Gottheit-Rang und dem unausweichlichen **Devil's Deal**.
### 1. Kontoverwaltung, UI-Logik & Grundregeln ### 1. Kontoverwaltung, UI-Logik & Grundregeln
@ -30,60 +31,75 @@
* **Klassisch (`bj_classic`):** 2 Decks, einfacher Level-Einsatzmultiplikator (`1x`), `1.0x` XP. * **Klassisch (`bj_classic`):** 2 Decks, einfacher Level-Einsatzmultiplikator (`1x`), `1.0x` XP.
* **Hoher Einsatz (`bj_highstakes`):** 6 Decks, doppelter Level-Einsatzmultiplikator (`2x`), `1.45x` XP. * **Hoher Einsatz (`bj_highstakes`):** 6 Decks, doppelter Level-Einsatzmultiplikator (`2x`), `1.45x` XP.
### 2. Devil's Gambit: Der 4-Stufen-Ablaufbaum ### 2. Devil's Gambit: Der 3-Stufen-Ablaufbaum & Auto-Showdown
Jeder Zug eines Spielers (und jedes Bots) durchläuft strikt nacheinander vier Entscheidungsknoten. Erhöhungen erscheinen erst, nachdem man sich aktiv fürs Weiterspielen entschieden hat: Jeder Tisch-Umlauf merkt sich über `cycle_card_drawn`, ob mindestens ein aktiver Teilnehmer eine Karte genommen hat. Dadurch gibt es kein Endlos-Bieten: **Zieht in einem gesamten Tisch-Umlauf niemand eine neue Karte, wird automatisch aufgedeckt!** (Etwaige letzte offene Erhöhungen aus diesem Umlauf werden vorher nur noch über `SETTLE_BETS` per *Mitgehen* oder *Austreten* beglichen – ohne weiteres Ziehen oder Erhöhen.)
```text ```text
+------------------+ +------------------+
| Rundenstart | (10 Gold Grundeinsatz pro Person -> je 2 Karten) | Tisch-Umlauf | (cycle_card_drawn = False zu Beginn jedes Umlaufs)
+---------+--------+ +---------+--------+
| |
+---------v--------+ +----------------------------+ +---------v--------+
| 1. Mitgehen? +--- Nein (eben) ----> Als FERTIG markiert | | Offene Erhöhung? +-- Nein -----------------------+
+---------+--------+ +-------------+--------------+ +---------+--------+ |
Ja |
| | | |
+--- Nein (gegen Erhöhung) ---> VERLOREN! | +---------v--------+ +----------v---------------+
| (Gold im Pot verloren) | | | 1. Mitgehen? +--- Nein ---------->| AUSGETRETEN (Verloren! |
Ja | | +---------+--------+ | Gold im Pot bleibt drin) |
| | | Ja +----------+---------------+
+---------v--------+ | |
| 2. Ziehen? +-- Nein --+ | |
| (Hit/Double/Split| | | |
+---------+--------+ | | |
Ja | | |
| | | |
+---------v--------+ | v v
| Karte gezogen! | | +------------------+
| Über 21? +-- Ja ----+---------> Nächster Spieler |
+---------+--------+ | | (Verloren / Out) |
Nein | +------------------+
| |
+---------v-------------------v-+ +------------------+
| 3. Erhöhen? +--Ja---> Pot erhöhen! |
| (Chips skalieren mit Level) | | (Zwingt Gegner |
+---------+---------------------+ | zum Mitgehen) |
Nein +--------+---------+
| | | |
+---------v--------+ | +---------v--------+ |
| 4. Fertig? +-- Ja (Karten sperren) ------+ | 2. Ziehen? |<------------------------------+ (wenn kein Raise offen)
| (Hit/Double/Split|
| oder Keine K.) +-- Keine Karte -----+
+---------+--------+ | +---------+--------+ |
Nein (Offen bleiben) | Karte gezogen! |
(cycle_card_drawn = True) |
| | | |
+---------v--------------------------------------v-+ +---------v--------+ | +------------------+
| Nächster Spieler am Zug | | Über 21? +--- Ja -------------+--------->| OUT! Überkauft |
+--------------------------------------------------+ +---------+--------+ | +--------+---------+
Nein | |
| | |
+---------v-----------------------------v-+ |
| 3. Erhöhen? +-- Ja -> Pot +! |
| (Chips skalieren mit Level) | | |
+---------+-------------------------------+ | |
Nein | |
| | |
+---------v-----------------------------------------v-------v-+
| Nächster Sitz am Tisch |
+-----------------------------+-------------------------------+
|
(Alle Sitze im Umlauf einmal durch?)
|
+----------------------+----------------------+
| |
[cycle_card_drawn == True] [cycle_card_drawn == False]
| (Keiner hat Karte gezogen!)
v |
Neuer Tisch-Umlauf Offene Raises begleichen
(SETTLE_BETS: Call / Fold)
|
v
AUTOMATISCHER SHOWDOWN
(Dealer zieht bis 16 / Stand 17)
``` ```
#### Besondere Karten-Aktionen in Schritt 2 (`Ziehen?`) #### Besondere Aktionen im Umlauf
* **Hit (Karte ziehen):** Zieht 1 Karte. Unter/gleich 21 geht es weiter zu Schritt 3 (*Erhöhen?*), über 21 ist die Hand sofort raus (*Bust*).
* **Double Down (Verdoppeln):** Nur bei genau 2 Startkarten möglich. Verdoppelt deinen Einsatz auf das Doppelte des aktuellen Tisch-Höchsteinsatzes, zieht **genau eine** Karte und sperrt die Hand automatisch als *Fertig*. * **Hit (Karte ziehen):** Zieht 1 Karte (`cycle_card_drawn = True`). Unter/gleich 21 geht es weiter zu Schritt 3 (*Erhöhen?*), über 21 ist die Hand sofort raus (*Bust*).
* **Double Down (Verdoppeln):** Nur bei genau 2 Startkarten möglich. Verdoppelt deinen Einsatz auf das Doppelte des aktuellen Tisch-Höchsteinsatzes, zieht **genau eine** Karte und sperrt die Hand für weitere Karten.
* **Split (Teilen):** Haben deine ersten beiden Karten denselben Blackjack-Wert, kannst du gegen einen zweiten Einsatz zwei getrennte Hände parallel weiterspielen. * **Split (Teilen):** Haben deine ersten beiden Karten denselben Blackjack-Wert, kannst du gegen einen zweiten Einsatz zwei getrennte Hände parallel weiterspielen.
* **Level-skalierte Erhöhungen:** Während der Grundeinsatz beim Geben immer bei 10 Gold bleibt, wachsen deine vier Erhöhungs-Chips in Schritt 3 automatisch alle 5 Blackjack-Level (mit jedem neuen Prestige-Rang) mit. Pro Runde sind bis zu 4 Erhöhungen möglich. * **Solo-Direktabschluss:** Spielst du allein ohne Bots und wählst *Keine neue Karte*, deckt der Tisch ohne unnötige Erhöhungs-Abfrage augenblicklich auf.
* **Level-skalierte Erhöhungen:** Während der Grundeinsatz beim Geben immer bei 10 Gold bleibt, wachsen deine vier Erhöhungs-Chips in Schritt 3 automatisch alle 5 Blackjack-Level (mit jedem neuen Prestige-Rang) mit.
### 3. KI-Gegner (Stufe 0 bis Gottheit) ### 3. KI-Gegner (Stufe 0 bis Gottheit)
Du kannst bis zu **3 Bots** gleichzeitig an den Tisch setzen: Du kannst bis zu **3 Bots** gleichzeitig an den Tisch setzen:
* **Stufe 0 – Verwirrte Seele:** Unberechenbare Zufallszüge. * **Stufe 0 – Verwirrte Seele:** Unberechenbare Zufallszüge.
* **Stufe 1 – Akolyth:** Vorsichtiges Spiel, hält früh. * **Stufe 1 – Akolyth:** Vorsichtiges Spiel, hält früh.
* **Stufe 2 – Nachtwanderer:** Solide Grundwerte, jagt bei zwei 7ern aktiv die `7-7-7`. * **Stufe 2 – Nachtwanderer:** Solide Grundwerte, jagt bei zwei 7ern aktiv die `7-7-7`.
@ -114,15 +130,15 @@ games/blackjack/
├── start.py # Einstiegspunkt & Devil's-Deal-Lock-Routing ├── start.py # Einstiegspunkt & Devil's-Deal-Lock-Routing
├── README.md # Spielspezifische Dokumentation (DE/EN) ├── README.md # Spielspezifische Dokumentation (DE/EN)
├── models/ ├── models/
│ ├── blackjack_engine.py # Spiel-Logik, Deck, Pot, Split/Double & JSON-Serialisierung │ ├── blackjack_engine.py # Spiel-Logik, Umlauf-Tracking, Split/Double & JSON-Serialisierung
│ ├── hand_evaluator.py # Punktberechnung, Soft-Hands, Blackjack & 7-7-7 Prüfung │ ├── hand_evaluator.py # Punktberechnung, Soft-Hands, Blackjack & 7-7-7 Prüfung
│ ├── player_hand.py # Datenmodell für Spielerhände (inkl. Split-Status) │ ├── player_hand.py # Datenmodell für Spielerhände (inkl. Split-Status)
│ ├── bot_seat.py # Sitz- & Statusmodell für KI-Gegner │ ├── bot_seat.py # Sitz- & Statusmodell für KI-Gegner
│ └── bot_ai.py # 4-Stufen-KI von Stufe 0 bis Stufe 6 (Gottheit / Hi-Lo Counter) │ └── bot_ai.py # 3-Stufen-KI von Stufe 0 bis Stufe 6 (Gottheit / Hi-Lo Counter)
└── views/ └── views/
├── blackjack_menu_view.py # Kontoverwaltung, Gold-Banner, Gegner-Setup & Tischwahl ├── blackjack_menu_view.py # Kontoverwaltung, Gold-Banner, Gegner-Setup & Tischwahl
├── blackjack_stats_view.py # Dedizierte Konto-Statistik-Ansicht pro Goldbeutel ├── blackjack_stats_view.py # Dedizierte Konto-Statistik-Ansicht pro Goldbeutel
├── blackjack_table_view.py # Spieltisch, 4-Knoten-Ablaufbaum & Auto-Save-Persistenz ├── blackjack_table_view.py # Spieltisch, 3-Knoten-Ablaufbaum, Auto-Showdown & Auto-Save
└── round_result_dialog.py # Runden-Auswertung mit Gewinn/Verlust-GIFs & Level-Up-Anzeige └── round_result_dialog.py # Runden-Auswertung mit Gewinn/Verlust-GIFs & Level-Up-Anzeige
``` ```
@ -132,6 +148,7 @@ games/blackjack/
## 🇬🇧 English ## 🇬🇧 English
### Overview ### Overview
**Blackjack – Devil's Gambit** fuses classic Vegas card rules with a ruthless multi-player gold pot, level-scaled bet raises, **Divine Punishment** at Deity rank, and the inescapable **Devil's Deal**. **Blackjack – Devil's Gambit** fuses classic Vegas card rules with a ruthless multi-player gold pot, level-scaled bet raises, **Divine Punishment** at Deity rank, and the inescapable **Devil's Deal**.
### 1. Account Management, UI Logic & Core Rules ### 1. Account Management, UI Logic & Core Rules
@ -154,20 +171,19 @@ games/blackjack/
* **Classic (`bj_classic`):** 2 decks, `1x` level chip scale, `1.0x` XP multiplier. * **Classic (`bj_classic`):** 2 decks, `1x` level chip scale, `1.0x` XP multiplier.
* **High Stakes (`bj_highstakes`):** 6 decks, `2x` level chip scale, `1.45x` XP multiplier. * **High Stakes (`bj_highstakes`):** 6 decks, `2x` level chip scale, `1.45x` XP multiplier.
### 2. Devil's Gambit: 4-Step Turn Flowchart ### 2. Devil's Gambit: 3-Step Turn Flowchart & Auto-Showdown
Every turn follows a strict 4-step decision tree. Raising options only unlock after committing to stay in the hand: Every table pass tracks `cycle_card_drawn` to prevent infinite raising loops: **if an entire pass around the table completes without anyone drawing a new card, the hand automatically proceeds to Showdown!** (If a final raise was made during that cardless pass, a quick `SETTLE_BETS` pass lets remaining contenders strictly *Match* or *Leave*—with no further drawing or re-raising—before revealing all hands.)
1. **Step 1 – Match Bet / Continue?** 1. **Step 1 – Match Bet?** *(Only shown if an opponent raised)*
* If an opponent raised, you must match the deficit (`+{X} Gold`) to stay alive—declining eliminates your hand immediately (*Lost*). * Pay the deficit (`+{X} Gold`) to stay in the pot, or choose **No — Leave (Lost)** to forfeit your hand immediately.
* If no raise is pending, choose **Continue Playing** to enter your turn, or **Mark as Ready** to lock your cards right away and pass to the next seat. * During a final `SETTLE_BETS` pass after a cardless cycle, matching immediately completes your action.
2. **Step 2 – Draw Card?** *(Skipped if your cards are already locked)* 2. **Step 2 – Draw Card or No Card?** *(Skipped if at 21 or already Doubled)*
* Choose **Draw Card (Hit)**, **Double Down** (on 2 cards: doubles table bet, draws 1 card, locks hand), **Split** (on equal-value pair: places second bet to play two hands side-by-side), or **No Card**. * Choose **Draw Card (Hit)**, **Double Down** (on 2 initial cards: doubles table bet, draws 1 card, locks hand), **Split** (on equal-value pair: places second bet to play two hands side-by-side), **No Card**, or **Leave**.
* Exceeding 21 results in an immediate **Bust** and passes the turn. * Taking any card sets `cycle_card_drawn = True`. Exceeding 21 results in an immediate **Bust** and passes the turn.
* In solo play (0 bots), choosing **No Card** triggers the Showdown immediately without prompting for a raise.
3. **Step 3 – Raise Bet?** 3. **Step 3 – Raise Bet?**
* Pick one of your 4 **level-scaled raise chips** (scaling up every 5 Blackjack levels) to increase the table stake and force all other active players—even those who already locked their cards—to match on their next turn, or choose **No Raise**. * Pick one of your 4 **level-scaled raise chips** (scaling up every 5 Blackjack levels) to grow the pot and force opponents to match, or choose **No Raise** to pass to the next seat.
4. **Step 4 – Ready?**
* Choose **Yes — Ready (Lock Cards)** so you draw no further cards, or **No — Next Player** to keep your hand open for the next cycle.
### 3. AI Personalities (Level 0 to Deity) ### 3. AI Personalities (Level 0 to Deity)
@ -201,14 +217,14 @@ games/blackjack/
├── start.py # Module entry point & Devil's Deal lock routing ├── start.py # Module entry point & Devil's Deal lock routing
├── README.md # Game-specific manual (DE/EN) ├── README.md # Game-specific manual (DE/EN)
├── models/ ├── models/
│ ├── blackjack_engine.py # Core rules, shoe, pot, Split/Double & JSON state serialization │ ├── blackjack_engine.py # Core rules, cycle tracking, Split/Double & JSON serialization
│ ├── hand_evaluator.py # Hand scoring, soft totals, natural Blackjack & 7-7-7 detection │ ├── hand_evaluator.py # Hand scoring, soft totals, natural Blackjack & 7-7-7 detection
│ ├── player_hand.py # Data model for player hands (incl. split tracking) │ ├── player_hand.py # Data model for player hands (incl. split tracking)
│ ├── bot_seat.py # Seat & status model for AI opponents │ ├── bot_seat.py # Seat & status model for AI opponents
│ └── bot_ai.py # 4-step flowchart AI from Level 0 up to Level 6 (Deity counter) │ └── bot_ai.py # 3-step flowchart AI from Level 0 up to Level 6 (Deity counter)
└── views/ └── views/
├── blackjack_menu_view.py # Account management, Gold banner, bot setup & variant cards ├── blackjack_menu_view.py # Account management, Gold banner, bot setup & variant cards
├── blackjack_stats_view.py # Dedicated per-pouch statistics screen ├── blackjack_stats_view.py # Dedicated per-pouch statistics screen
├── blackjack_table_view.py # Game table UI, 4-node turn state machine & per-click auto-save ├── blackjack_table_view.py # Game table UI, 3-node turn state machine, auto-showdown & auto-save
└── round_result_dialog.py # Showdown modal with win/loss GIFs & level-up banner └── round_result_dialog.py # Showdown modal with win/loss GIFs & level-up banner
``` ```