This is an implementation of an algorithm called Minimax along with an implementation of alpha-beta (α-β) pruning. It is a basic algorithm used for simple multiplayer games in the AI community. It works by assuming both you and itself will make the best move available and prioritizes the most optimal path to winning.
Wikipedia: Minimax Github Repository