Auto Fit keeps the game centered and prevents embed offset. Turn it off to manually scale.
AI is “unbeatable” (minimax). Swap sides makes you play as the other symbol.
Canvas is used for crisp neon rendering at any size. Input uses pointer events so it works on mouse, touch, and pen. A simple animation loop draws a glowing grid, pieces, hover highlights, and a win line.
Credit: Jeromy R. Robbins