1 to show/hide AI data 2 to autotrain (extremely slow at more trains) X - Player | O - AI The AI learns by playing moves and ranking them using a points-based system. A winning combination increases the points of those moves by 1, while a losing combination reduces them by 1. When choosing a move, it picks the move that has a higher rating. If two or more moves have the same highest rating, the AI randomly picks a move from them. All code by me