Fix Blackjack observation from boolean to int as expected (#366)

This commit is contained in:
devhoodit
2023-03-08 20:42:07 +09:00
committed by GitHub
parent b68a2d1d4b
commit e22897f588

View File

@@ -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