ThalesGroup / kessler-game

Kessler is a simulation environment loosely modeled after our internal project PsiBee and the external project Fuzzy Asteroids. The game has ships that shoot bullets at asteroids to gain score. Ships can collide with asteroids and other ships and lose lives.
https://github.com/ThalesGroup/kessler-game
Apache License 2.0
8 stars 5 forks source link

Nice to have: Tell the controller how much time is left #42

Closed Jie-F closed 6 months ago

Jie-F commented 7 months ago

It would be super nice if in the game state dict passed to the controller, we're told the time_limit for the scenario.

This way the controllers can change their strategy depending on how much time is left, such as rationing lives/mines/bullets, or dumping all remaining mines right before the time limit even if it means death. Additionally, if there's not enough time left for a bullet to reach its intended target, the controller can avoid firing and missing the shot.

This can be accomplished by adding 'time_limit': time_limit to line 109 on kessler_game.py