Code: Alles auswählen
self.action_space = spaces.Discrete(6)
self.observation_space = spaces.Discrete(width * height * block_number * block_degree * stored_block)
Our board has a width of 8 pixels and a height of 16 pixels.
block_number is the amount of different blocks, in our case we have 7 different blocks.
block_degree is the number of degree when we turn the block right or left (0, 90, 180, 270).
stored_block can be used to save a block and use it later. We have 8 different options (block 1-7 or none)
When we use this
Code: Alles auswählen
(self.observation_space = spaces.Discrete(8*16*7*4*8))
Code: Alles auswählen
IndexError: too many indices for array
Code: Alles auswählen
observation_space
Code: Alles auswählen
IndexError: index 1 is out of bounds for axis 0 with size 1
Thank you in advance.