From 175b02536ce90004af1dd6371a4ce67805ecc5d5 Mon Sep 17 00:00:00 2001 From: c0de Date: Thu, 10 Nov 2022 22:09:36 -0600 Subject: [PATCH] Refactor init to what is passed and defaults --- GhostBallBot/game/guess.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/GhostBallBot/game/guess.py b/GhostBallBot/game/guess.py index a19cfd6..40be450 100644 --- a/GhostBallBot/game/guess.py +++ b/GhostBallBot/game/guess.py @@ -22,15 +22,15 @@ class ProcessGuess: A helper class for the GameManager that handles the logic behind a player's guess """ - def __init__(self, game, **kwargs): + def __init__(self, game, pitch_value, message): self.game_manager = game + self.message = message + self.pitch_value = pitch_value - self.message = kwargs.get("message") - self.pitch_value = kwargs.get("pitch_value") - self.difference = kwargs.get("difference") - self.difference_score = kwargs.get("difference_score") - self.guesses = kwargs.get("guesses") - self.guess = kwargs.get("guess") + self.difference = 0 + self.difference_score = 0 + self.guesses = [Guess] + self.guess = Guess def get_guesses(self): """