Tic Tac Toe using Flask and AngularJS; AI uses minimax algorithm