How to Play
Objective: Get the specified number of pieces in a row (default: 3) in any direction to win.
- Start: Set board dimensions and win length, then click "Start Game"
- Make a Move: Click on any empty cell to place your piece (X or O)
- Rotate Board: Click and drag the polyhedron near the top-right corner to rotate the 3D view
- AI Move: Click "AI Move" to let the computer play for the current player
- AI Depth: Higher values (1-6) make the AI stronger but slower
- Undo: Take back the last move
Win Directions: You can win along any axis (X, Y, Z), any planar diagonal, or any 3D space diagonal.