mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-07-31 05:44:31 +00:00
Fix Blackjack observation from boolean to int as expected (#366)
This commit is contained in:
@@ -25,7 +25,7 @@ def draw_hand(np_random):
|
||||
|
||||
|
||||
def usable_ace(hand): # Does this hand have a usable ace?
|
||||
return 1 in hand and sum(hand) + 10 <= 21
|
||||
return int(1 in hand and sum(hand) + 10 <= 21)
|
||||
|
||||
|
||||
def sum_hand(hand): # Return current hand total
|
||||
|
Reference in New Issue
Block a user