This commit is contained in:
Team3
2026-09-07 04:29:23 +02:00
parent e299f9d088
commit 6478559252
8 changed files with 708 additions and 197 deletions

View File

@@ -57,10 +57,12 @@ static func choose_action(values: Array, total_dice: int, bid: Dictionary,
if raise_.is_empty():
if must_bid:
# Notgebot: minimal erhöhen, auch wenn unwahrscheinlich
var c: int = bid.count + maxi(1, min_raise)
if c > total_dice:
return {"type": "challenge"} if not must_bid else {"type": "bid", "count": total_dice, "face": bid.face}
return {"type": "bid", "count": c, "face": bid.face}
var c: int = int(bid.count) + maxi(1, min_raise)
if c <= total_dice:
return {"type": "bid", "count": c, "face": bid.face}
if min_raise <= 1 and int(bid.face) < 6:
return {"type": "bid", "count": int(bid.count), "face": int(bid.face) + 1}
# Es gibt kein gültiges Gebot mehr - dann bleibt nur die Anfechtung.
return {"type": "challenge"}
return {"type": "bid", "count": raise_.count, "face": raise_.face}