Closed DeeperCS closed 8 years ago
I think I've got it, the player can only see one showing card of dealer, and that's part of the observation. However, maybe print out the dealer's real points would be more intuitive for somebody that not familiar with the game rules enough.(。・_・。)
Yeah, I took the code directly from OpenAI gym and only modified it slightly. I think the dealer's score is intentionally not printed out because it's not "visible" to a y real player. I agree it's a bit confusing though. Closing this for now!
According to the game rules explained in the beginning of
class BlackjackEnv
oflib/envs/blackjack.py
, and the observations returned as follows:Why return
self.dealer[0]
as the total points of dealer? I think it just represent the points of first card that the dealer have got.And maybe this is the reason for the weird 'output' of observation as shown below:
The dealer's score keep the same all the time, while actually he was hitting, and that's why the game end with draw.