mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-31 18:12:53 +00:00
@@ -7,9 +7,6 @@ class Tuple(Space):
|
||||
def __init__(self, spaces):
|
||||
self.spaces = spaces
|
||||
|
||||
def __len__(self):
|
||||
return len(self.spaces)
|
||||
|
||||
def sample(self):
|
||||
return tuple([space.sample() for space in self.spaces])
|
||||
|
||||
|
Reference in New Issue
Block a user