update
This commit is contained in:
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user