INNER CODE UNIT · Python
__radd__
ikatsov/tensor-house · supply-chain/world_of_supply/world_of_supply_environment.py:40
def __radd__(self, other):
if other == 0:
return self
else:
return self.__add__(other)
# ======= Infrastructure
class TerrainCell(Cell):
def __init__(self, x, y):
super(TerrainCell, self).__init__(x, y)
class RailroadCell(Cell):
def __init__(self, x, y):
super(RailroadCell, self).__init__(x, y)
# ======= Transportation