Computer Artificial Intelligence is an important part of any single player game. We’ll take a practical look at how to build good computer players by first analyzing how humans play the game of Air Hockey. We’ll then adapt those concepts into a state machine that the computer can use so that it will appear to play like a human. We’ll tackle proper offense and defense strategies and combine it with a scaling factor of difficulty. The end result will be a single player mode with easy, medium, and hard levels that makes our Air Hockey game difficult to put down.