Spook needs to escape from the King of Id's dungeons. He slips out but Turnkey is in pursuit. He needs to solve math problems to open the way to his escape. Wizard of Id's WizMath is an educational game to teach mathematics.
The gameplay involves using your joystick to move blocks into place, completing correct math problems and answering them. You can push against a block to send it flying, or face a block and hold down the button to slide it as needed. The game has a sixty-second time limit, with Turnkey pursuing Spook. Early levels require only one math problem to exit, while later levels need two or more.
As you progress through the game, you can select a floor on an elevator at the start. The higher the floor, the more difficult the math problems become. Your age is also asked when starting the game, and the older you say you are, the higher a floor it tries to start you on. You can choose a lower floor if you prefer.