Complete the code to initialize the game state with a default score.
game_state = {"score": [1]The initial score should be zero as a number to represent the starting point.
Complete the code to update the player's position in the game state.
game_state["player_position"] = ([1], 5)
The player's x-coordinate should be a number, here 10, to update position correctly.
Fix the error in the code that resets the game state.
def reset_game(): game_state = [1]
Resetting the game state requires an empty dictionary to hold game data.
Fill both blanks to correctly check if the game is over and update the state.
if game_state.get("lives", 0) [1] 0: game_state["status"] = [2]
Game is over if lives equal zero, so status should be set to "over".
Fill all three blanks to update the score only if the game is active and the points are positive.
if game_state.get("status") == [1] and points [2] 0: game_state["score"] [3] points
Score updates only when status is "playing" and points are positive, using += to add points.