Checking for a Win
Before we create the main game loop, we need one final function. Each time the player knocks out a brick, the score variable is increased by 1. When the score variable is equal to the
brickcount variable (which holds the number of bricks at the start of the game), the player has won. This short function checks and returns the value
True if the player has won, and returns the value
False if not.
False don’t have quotation marks (or speech marks) around them because they’re not text strings. They’re special values you can use in Python.