Skip to content

Commit

Permalink
test: Cheaper cities for curriculum
Browse files Browse the repository at this point in the history
  • Loading branch information
strakam committed Mar 9, 2025
1 parent 67895a0 commit 7fd6e24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generals/core/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, grid: np.ndarray, _agents: list[str]):
# City costs are 40 + digit in the cell
city_costs = np.where(np.char.isdigit(grid), grid, "0").astype(np.int16)
city_costs += np.where(grid == "x", 10, 0)
self.armies += 40 * self.cities + city_costs
self.armies += 20 * self.cities + city_costs

def get_visibility(self, agent_id: str) -> np.ndarray:
channel = self._ownership[agent_id]
Expand Down

0 comments on commit 7fd6e24

Please sign in to comment.