You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where it's written "It will have the following attributes:" could it be "It will have the following methods:";
And where it's written "takes a player as attribute" could it be "takes a player an argument"?
Original text:
It will have the following attributes:
hire_player, takes a player as attribute. This method should check if the salary is equal to or lower than the budget, and if so add the player to the list of players, and remove their salary from the budget. If the team does not have enough budget to hire the player you should print something that helps you know that happened (your choice).
fire_player, takes a player as attribute. This method should remove the player from the list of players, and add their salary back to the budget.
reset_points, takes no arguments. This method should set the points_in_game back to 0
all_players_attempt_to_score, takes no arguments. This method should start by calling the reset_points method, then loop over every player on the team and have each of them attempt to score (using the player's attempt_to_score method). For each one that scores it should increment points_in_game by 1.
The text was updated successfully, but these errors were encountered:
Where it's written "It will have the following attributes:" could it be "It will have the following methods:";
And where it's written "takes a player as attribute" could it be "takes a player an argument"?
Original text:
It will have the following attributes:
hire_player
, takes a player as attribute. This method should check if the salary is equal to or lower than the budget, and if so add the player to the list of players, and remove their salary from the budget. If the team does not have enough budget to hire the player you should print something that helps you know that happened (your choice).fire_player
, takes a player as attribute. This method should remove the player from the list of players, and add their salary back to the budget.reset_points
, takes no arguments. This method should set thepoints_in_game
back to 0all_players_attempt_to_score
, takes no arguments. This method should start by calling thereset_points
method, then loop over every player on the team and have each of them attempt to score (using the player'sattempt_to_score
method). For each one that scores it should incrementpoints_in_game
by 1.The text was updated successfully, but these errors were encountered: