ying-wen / malib_deprecated

A Multi-agent Learning Framework
MIT License
61 stars 16 forks source link

Base Environment #16

Closed Phutoast closed 5 years ago

Phutoast commented 5 years ago

Currently, most, if not all, the environment are independent. It might be useful to include the base environment, which will define the interface of all environments. This can be useful. For example

class DifferentialGame:
    def __init__(self, game_name, agent_num, action_range=(-10, 10)):
        self.game = game_name
        self.agent_num = agent_num
        self.action_range = action_range
        ....
    ....

Can inherit BaseGame , which is an environment interface

Phutoast commented 5 years ago

Added in commit 88d1934