Al Heck

Switch Statements

Objective: let’s go from if statements to switch statements

A little more reorganization, but it’s a lot cleaner to read and understand. The first being that we will move the player declaration above since it will be used in all of the switch statement cases. Cases = ints, starting at 0.

Default is sort of a fallback case — if the value falls outside of the initial parameter, it gets this debug log.