state pattern implement set of transition methods to deal with the expected inputs for every state implement the actions that need to be taken by the machine in every state rememberthese actions live in the concrete state class as well as in the base state class there you have it-- fully implemented state machine that has one-to-one relation to the abstract diagram solving the problem exercises expand on the simple state machine for the player character by using pygame to create visual version load sprite for the player and then model some basic physics for the jump action explore the different types of assert statements available to you as part of the python unittest library