This article will teach you about the minimax algorithm and alpha-beta pruning, from a beginner's perspective.
You didn't ask, but let me tell you I learned a lot of maths over at KhanAcademy.