Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix multiple open issues #79

Merged
merged 11 commits into from
Sep 28, 2024
Merged
Prev Previous commit
Next Next commit
fix cc78197
Belissimo-T committed Jul 31, 2024
commit 29fac5e807941e7f2f32e3c5a63b15e525a568b6
2 changes: 1 addition & 1 deletion seekers/game.py
Original file line number Diff line number Diff line change
@@ -52,8 +52,8 @@ def __init__(self, local_ai_locations: typing.Iterable[str], config: Config,
self._logger.warning("Config option `global.wait-for-players=false` is not supported for local players.")

if grpc_address and len(self.players) < config.global_players:
from seekers.grpc.server import GrpcSeekersServer
try:
from seekers.grpc.server import GrpcSeekersServer
self.grpc = GrpcSeekersServer(self, grpc_address)
except ImportError as e:
self._logger.warning("gRPC server could not be started. Import error.", exc_info=e)
3 changes: 2 additions & 1 deletion seekers/goal.py
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@
from . import (
physical,
camp,
player,
)

__all__ = [
@@ -16,7 +17,7 @@ class Goal(physical.Physical):
def __init__(self, scoring_time: float, base_thrust: float, *args, **kwargs):
physical.Physical.__init__(self, *args, **kwargs)

self.owner = None
self.owner: player.Player | None = None
self.time_owned: int = 0

self.scoring_time = scoring_time