forked from c0de/BaseballBot
Refactor init to what is passed and defaults
This commit is contained in:
parent
5cf6b30eb2
commit
175b02536c
@ -22,15 +22,15 @@ class ProcessGuess:
|
|||||||
A helper class for the GameManager that handles the logic behind a player's guess
|
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.game_manager = game
|
||||||
|
self.message = message
|
||||||
|
self.pitch_value = pitch_value
|
||||||
|
|
||||||
self.message = kwargs.get("message")
|
self.difference = 0
|
||||||
self.pitch_value = kwargs.get("pitch_value")
|
self.difference_score = 0
|
||||||
self.difference = kwargs.get("difference")
|
self.guesses = [Guess]
|
||||||
self.difference_score = kwargs.get("difference_score")
|
self.guess = Guess
|
||||||
self.guesses = kwargs.get("guesses")
|
|
||||||
self.guess = kwargs.get("guess")
|
|
||||||
|
|
||||||
def get_guesses(self):
|
def get_guesses(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user