Branching Statements
摘要
What makes every game fun to play are the choices players must make to get closer to winning. The challenging yet intriguing part to making a game fun is making choices that count and testing to see if the player made the right choice. Since every video game offers choices, every program controlling a video game must know how to offer choices and make decisions based on what the user does. In the programming world, you can create choices in a program through something called a branching statement.