Skip to content

Commit

Permalink
Fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanyam Kapoor committed Feb 17, 2019
1 parent c4322dc commit 5370571
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gym_2048/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def reset(self):
self.board = np.zeros((self.width, self.height), dtype=np.int64)
self._place_random_tiles(self.board, count=2)

return self.board

def render(self, mode='human'):
if mode == 'human':
for row in self.board.tolist():
Expand Down

0 comments on commit 5370571

Please sign in to comment.