-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug fixes #3
base: master
Are you sure you want to change the base?
Bug fixes #3
Conversation
gym_2048/env.py
Outdated
dtype=np.int64) | ||
self.observation_space = spaces.Box( | ||
low=2, | ||
high=2 ** (1 + self.width * self.height), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accurate maximum tile depending on the board size
@@ -77,8 +76,7 @@ def is_done(self): | |||
|
|||
return True | |||
|
|||
|
|||
def reset(self): | |||
def reset(self, **kwargs): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make parameters match the base method in class Env
size=count, | ||
p=probs) | ||
return tiles.tolist() | ||
return self.np_random.choice([1, 2], size=count, p=[0.9, 0.1]).tolist() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why choices are 1 and 2 instead of 2 and 4?
No description provided.