@@ -1,4 +1,5 @@
import hashlib
+from abc import abstractmethod
import math
import string
from enum import IntEnum
@@ -823,8 +824,9 @@ class MiniGridEnv(gym.Env):
return str
+ @abstractmethod
def _gen_grid(self, width, height):
- assert False, "_gen_grid needs to be implemented by each environment"
+ pass
def _reward(self):
"""