Die CR-17-Variante — eine Setzrunde, je fuenf Karten, kein Aufdecken — fuehlte sich nicht wie Poker an. Ersetzt durch Heads-up Hold'em: zwei verdeckte Hole Cards je Seite, die fuenf Gemeinschaftskarten decken sich als eigene Reihe zwischen den Haenden in drei Schritten auf (Flop, Turn, River), vier Setzrunden mit Checken, Mitgehen, Erhoehen und Aussteigen. Kleiner und grosser Blind wechseln pro Hand; der Small Blind handelt Pre-Flop zuerst und schuldet dort die Blind-Differenz. Fixed Limit mit maximal zwei Erhoehungen pro Strasse, damit der Pott lesbar bleibt. CardDeck.evaluate_best_of bewertet die beste 5-aus-N-Kombination ueber einen allgemeinen Kombinationszaehler — am River 21 Kombinationen; die Gegner-Einschaetzung ruft am Flop und Turn auch mit fuenf oder sechs Karten an, der naive Lass-zwei-weg-Ansatz waere am Turn falsch gewesen. Der Gegner spielt eine Hand konsistent: ob er blufft, wuerfelt er einmal pro Hand, nicht pro Entscheidung; seine Einschaetzung waechst mit jeder aufgedeckten Strasse aus der echten Teilbewertung, skill mischt Wahrheit und Rauschen. Pre-Flop zaehlt eine Hole-Card-Heuristik. Spieltisch-Anbindung (Einsatz, Sitzordnung, Ridocs Dealer-Regel), card_view-Platzhalter und das Messerspiel bleiben unveraendert. Verifiziert mit dev_cr27_probe (16/16, darunter eine komplett durchgespielte Partie mit Aufdecken bis zum River und Dealer-Wechsel ueber alle Haende) und einem Boot-Check ueber sieben Szenen; Sonde vor dem Commit geloescht. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
129 lines
4.4 KiB
Text
129 lines
4.4 KiB
Text
[gd_scene load_steps=3 format=3]
|
|
|
|
[ext_resource type="Script" path="res://scripts/ui/poker_game.gd" id="1_poker"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_panel"]
|
|
content_margin_left = 14.0
|
|
content_margin_top = 12.0
|
|
content_margin_right = 14.0
|
|
content_margin_bottom = 12.0
|
|
bg_color = Color(0.09, 0.14, 0.11, 0.96)
|
|
corner_radius_top_left = 6
|
|
corner_radius_top_right = 6
|
|
corner_radius_bottom_right = 6
|
|
corner_radius_bottom_left = 6
|
|
|
|
[node name="PokerGame" type="CanvasLayer"]
|
|
layer = 6
|
|
script = ExtResource("1_poker")
|
|
|
|
[node name="Root" type="Control" parent="."]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
|
|
[node name="Panel" type="PanelContainer" parent="Root"]
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -400.0
|
|
offset_top = -318.0
|
|
offset_right = 400.0
|
|
offset_bottom = 318.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_panel")
|
|
|
|
[node name="Margin" type="MarginContainer" parent="Root/Panel"]
|
|
theme_override_constants/margin_left = 12
|
|
theme_override_constants/margin_top = 10
|
|
theme_override_constants/margin_right = 12
|
|
theme_override_constants/margin_bottom = 10
|
|
|
|
[node name="Content" type="VBoxContainer" parent="Root/Panel/Margin"]
|
|
theme_override_constants/separation = 8
|
|
|
|
[node name="TitleLabel" type="Label" parent="Root/Panel/Margin/Content"]
|
|
theme_override_colors/font_color = Color(0.94, 0.94, 0.88, 1)
|
|
theme_override_font_sizes/font_size = 19
|
|
text = "Hold'em"
|
|
|
|
[node name="Header" type="HBoxContainer" parent="Root/Panel/Margin/Content"]
|
|
theme_override_constants/separation = 16
|
|
|
|
[node name="RoundLabel" type="Label" parent="Root/Panel/Margin/Content/Header"]
|
|
size_flags_horizontal = 3
|
|
theme_override_colors/font_color = Color(0.72, 0.76, 0.68, 1)
|
|
theme_override_font_sizes/font_size = 14
|
|
text = "Hand 1 / 4"
|
|
|
|
[node name="BlindLabel" type="Label" parent="Root/Panel/Margin/Content/Header"]
|
|
theme_override_colors/font_color = Color(0.68, 0.74, 0.78, 1)
|
|
theme_override_font_sizes/font_size = 14
|
|
text = "Du: kleiner Blind"
|
|
|
|
[node name="PotLabel" type="Label" parent="Root/Panel/Margin/Content/Header"]
|
|
theme_override_colors/font_color = Color(0.86, 0.8, 0.55, 1)
|
|
theme_override_font_sizes/font_size = 14
|
|
text = "Pott: 3"
|
|
|
|
[node name="TheirRow" type="VBoxContainer" parent="Root/Panel/Margin/Content"]
|
|
theme_override_constants/separation = 4
|
|
|
|
[node name="TheirLabel" type="Label" parent="Root/Panel/Margin/Content/TheirRow"]
|
|
theme_override_colors/font_color = Color(0.82, 0.78, 0.6, 1)
|
|
theme_override_font_sizes/font_size = 15
|
|
text = "Gegner"
|
|
|
|
[node name="TheirCards" type="HBoxContainer" parent="Root/Panel/Margin/Content/TheirRow"]
|
|
custom_minimum_size = Vector2(0, 92)
|
|
theme_override_constants/separation = 6
|
|
|
|
[node name="CommunityRow" type="VBoxContainer" parent="Root/Panel/Margin/Content"]
|
|
theme_override_constants/separation = 4
|
|
|
|
[node name="CommunityLabel" type="Label" parent="Root/Panel/Margin/Content/CommunityRow"]
|
|
theme_override_colors/font_color = Color(0.7, 0.78, 0.7, 1)
|
|
theme_override_font_sizes/font_size = 14
|
|
text = "Tisch"
|
|
|
|
[node name="CommunityCards" type="HBoxContainer" parent="Root/Panel/Margin/Content/CommunityRow"]
|
|
custom_minimum_size = Vector2(0, 92)
|
|
theme_override_constants/separation = 6
|
|
|
|
[node name="OwnRow" type="VBoxContainer" parent="Root/Panel/Margin/Content"]
|
|
theme_override_constants/separation = 4
|
|
|
|
[node name="OwnCards" type="HBoxContainer" parent="Root/Panel/Margin/Content/OwnRow"]
|
|
custom_minimum_size = Vector2(0, 92)
|
|
theme_override_constants/separation = 6
|
|
|
|
[node name="OwnLabel" type="Label" parent="Root/Panel/Margin/Content/OwnRow"]
|
|
theme_override_colors/font_color = Color(0.9, 0.9, 0.85, 1)
|
|
theme_override_font_sizes/font_size = 16
|
|
text = "Deine Hand"
|
|
|
|
[node name="Actions" type="HBoxContainer" parent="Root/Panel/Margin/Content"]
|
|
theme_override_constants/separation = 8
|
|
|
|
[node name="CheckCallButton" type="Button" parent="Root/Panel/Margin/Content/Actions"]
|
|
size_flags_horizontal = 3
|
|
text = "Checken"
|
|
|
|
[node name="RaiseButton" type="Button" parent="Root/Panel/Margin/Content/Actions"]
|
|
size_flags_horizontal = 3
|
|
text = "Erhöhen"
|
|
|
|
[node name="FoldButton" type="Button" parent="Root/Panel/Margin/Content/Actions"]
|
|
size_flags_horizontal = 3
|
|
text = "Aussteigen"
|
|
|
|
[node name="ResultLabel" type="Label" parent="Root/Panel/Margin/Content"]
|
|
theme_override_colors/font_color = Color(0.88, 0.85, 0.7, 1)
|
|
theme_override_font_sizes/font_size = 15
|
|
text = ""
|
|
autowrap_mode = 3
|