AI is used in games by providing computer brains with programming done by programmers. For example, Deep Blue defeated chess grandmaster Gary Kasparov and Watson competed successfully on Jeopardy. Internally, computers use brute force to recognize thousands of moves per second and choose the best move to maximize its rating using algorithms like minimax, alpha-beta pruning, and transposition tables.