Validated local 7×6 position analysis
Connect Four Solver
Build a legal Connect Four position with gravity, validate the game state, and receive a deterministic tactical or bounded-search move analysis.
Build the position by selecting columns. Red moves first; turns alternate automatically. This prevents floating pieces and preserves gravity.
Empty board. Red to move.
Loading local position analyzer…
Position analysis
Current player:
Legal columns:
Recommended column:
Evaluation:
Independent descriptive tool. No affiliation with or endorsement by Hasbro is claimed.
Method, privacy, and limits
The board is a fixed seven-column, six-row gravity model. Validation checks turn counts, completed wins, full boards, and legal columns. Immediate wins and mandatory single threats are proven tactically. Other positions use deterministic alpha-beta minimax with center-first move order, a transposition cache, a depth-nine and 180,000-node bound. Those results are labeled “best move found within search limits,” not optimal or guaranteed.
Inputs and results stay in this browser tab. They are not put in the URL, saved in browser storage, or sent to a remote solver or generator.