Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
msosav committed Jan 7, 2025
1 parent c89e7ec commit cd4093c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions config/gym.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,24 +155,18 @@ def _get_observation(self):
# Image observation
screen = self._get_screen()

# Room type
room_type = self.pyboy.memory[ADDR_DESTINATION_BYTE_1]

# Room number
room_number = self.pyboy.memory[ADDR_DESTINATION_BYTE_3]

# Current room layout
current_room_layout = [
self.pyboy.memory[addr] for addr in ADDR_CURRENTLY_LOADED_MAP
]

# Health
health = self.pyboy.memory[ADDR_CURRENT_HEALTH] / 8

# Rupees
rupees = self._check_rupees()

# Items in inventory
items_in_inventory = sum(
[1 for item in self.items if self.items[item]])

Expand Down

0 comments on commit cd4093c

Please sign in to comment.