Tic Tac Torus


Play it!

Turn: X
Torus rules: edges wrap—right↔left, top↔bottom. Three in a row can cross boundaries.
How the math works
We index cells by (r, c) with r, c ∈ {0,1,2}, and check lines in four directions: →, ↓, ↘, and ↗. Each step uses modular arithmetic:
r ← (r + dr) mod 3,  c ← (c + dc) mod 3
That turns the 3×3 grid into a torus: opposite edges are identified. A win is K=3 equal marks along any wrapped line.