Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Bug fixes #3

wants to merge 5 commits into from

Conversation

h0rban
Copy link

@h0rban h0rban commented Dec 4, 2022

No description provided.

gym_2048/env.py Outdated
dtype=np.int64)
self.observation_space = spaces.Box(
low=2,
high=2 ** (1 + self.width * self.height),
Copy link
Author

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):
Copy link
Author

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()
Copy link

@emerrf emerrf Jun 5, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants