mrbermell
mrbermell
In game.py, the method `_is_action_allowed()` is renamed to `is_action_allowed()` to make it _public_. I've also removed the print statements, which are annoying and confusing. Instead the function returns an object...
I stumbled over a bug in `get_safest_path()`, it didn't detect that a handoff action was started and didn't return a handoff path as it should. This PR fixes that and...
Edit: Added description below. This PR improves - tests.utils.get_custom_game_turn() by adding option to specify board size, turn. Also readability refactor. - test.utils.get_custom_turn() by adding option to specify board size It...
> The special attribute [__slots__](https://docs.python.org/3/reference/datamodel.html#slots) allows you to explicitly state which instance attributes you expect your object instances to have, with the expected results: > - faster attribute access. >...
(as raised by user AurelianTactics on Discord) The Reroll-procedure is looking at `self.game.get_team_agent(self.player.team).human` when determining which the available actions shall be. This means you get different behavior of the game...
Right now, ffai has four formations and it's complicated to add more. There should be more formations available and simple to add for more. Njustesen has suggested a new action...
[PEP 484](https://www.python.org/dev/peps/pep-0484/) specifies a syntax for providing type hints for function arguments and return types: ``` python def greeting(name: str) -> str: return 'Hello ' + name ``` This makes...
Currently the fixed dice are stored with a singleton pattern, namely the class itself (see code below). If fixed dice are used with multiple game objects at the same time...
Both Injury-procedure and Casualty procedure reports the outcome type CASUALTY. Since this particular outcome is used to calculate reward in a2c this behavior is a bit off. I propose we...