ActionSequence() base class allows for complex actions for units or cities. The default ActionSequence allows you specify multiple actions for a unit, but you can override this class to assign tasks like move to nearest wood, etc.
game.cells_with_roads is now a list of cells with non-zero roads on them. Speeds up map featurization that involves creating maps of where all roads are each turn.
New agent callback turn_heurstics(), that allows for taking hardcoded logic actions. Eg, if you always want cities to build units if-able, otherwise research you can create a turn_heuristic. That way the RL agent won't be making decisions for cities.
Adds three main changes:
ActionSequence()
base class allows for complex actions for units or cities. The default ActionSequence allows you specify multiple actions for a unit, but you can override this class to assign tasks like move to nearest wood, etc.game.cells_with_roads
is now a list of cells with non-zero roads on them. Speeds up map featurization that involves creating maps of where all roads are each turn.turn_heurstics()
, that allows for taking hardcoded logic actions. Eg, if you always want cities to build units if-able, otherwise research you can create a turn_heuristic. That way the RL agent won't be making decisions for cities.