Skip to content

Conversation

@dv3-000
Copy link
Collaborator

@dv3-000 dv3-000 commented Nov 9, 2021

No description provided.

Copy link
Owner

@jackdavidweber jackdavidweber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe play with multiple bombs?

self.snake = Snake(self.rows,self.cols)
self.fruit_pos = (0,0)
self.generate_fruit()
self.bomb_pos = (0,0)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create state variable for whether or not we are using bombs. Then pass this conditional to game_over and directly below here to determine whether bomb is genderated


self.action_space = spaces.Discrete(4)
self.observation_space = spaces.Box(low=0, high=3, shape=(self.game.cols, self.game.rows), dtype=int)
self.observation_space = spaces.Box(low=0, high=4, shape=(self.game.cols, self.game.rows), dtype=int)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the 4 be non-hard coded?

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.

3 participants