Skip to content

Commit

Permalink
Renamed agent and removed standard value for game_ID for game class
Browse files Browse the repository at this point in the history
  • Loading branch information
PacoSchatz committed Jan 19, 2024
1 parent 148c327 commit 0b88b29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions teamprojekt_competition_server/client/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

if __name__ == "__main__":

class MyAgent(COMPAgent):
class Laserhockey_Agent(COMPAgent):
"""Dummy Agent for testing"""

def step(self, obv: list[float]) -> list[float]:
Expand Down Expand Up @@ -45,5 +45,5 @@ def step(self, obv: list[float]) -> list[float]:
return [random.choice([0.0, 1.0, 2.0])]
# Action Space Box(-2.0, 2.0, (1,), float32)

agent = MyAgent() # Rock_Paper_Scissors_Agent()
agent = Laserhockey_Agent() # Rock_Paper_Scissors_Agent()
agent.run("HelloWorldToken")
2 changes: 1 addition & 1 deletion teamprojekt_competition_server/server/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def notify_end(self, result, stats):
class IGame(abc.ABC):
"""game interface"""

def __init__(self, players: list[IPlayer], game_id: int = 123) -> None:
def __init__(self, players: list[IPlayer], game_id: int) -> None:
self.players: list[IPlayer] = players
self.current_actions: list = [None for _ in players]
self.result_received: int = 0
Expand Down

0 comments on commit 0b88b29

Please sign in to comment.