TOPICS
Search

Connect-Four


Connect-four animation

Connect-Four is a tic-tac-toe-like two-player game in which players alternately place pieces on a vertical board 7 columns across and 6 rows high. Each player uses pieces of a particular color (commonly black and red, or sometimes yellow and red), and the object is to be the first to obtain four pieces in a horizontal, vertical, or diagonal line. Because the board is vertical, pieces inserted in a given column always drop to the lowest unoccupied row of that column. As soon as a column contains 6 pieces, it is full and no other piece can be placed in the column.

Both players begin with 21 identical pieces. If all 42 pieces are played and no player has placed four pieces in a row, the game is drawn.

The first player has a winning strategy on the standard board (Allis 1988, p. 81).

The numbers of board arrangements with n=0, 1, 2, ..., 42 pieces, satisfying gravity and having equal numbers of each color for even n or one extra piece of the first player's color for odd n, are 1, 7, 56, 252, 1260, 4620, 18480, 59815, 206780, ... (OEIS A090224; Allis 1988, p. 91). These counts include arrangements unreachable by alternating play and arrangements in which play has continued after a win (Allis 1988, pp. 10-11). At n=2, seven of the 56 arrangements have the second player's piece below the first player's piece in a single column, leaving 49 legal positions.


See also

Checkers, Qubic, Tic-Tac-Toe

Explore with Wolfram|Alpha

References

Allen, J. D. "Expert Play in Connect-Four." http://www.pomakis.com/~pomakis/c4/expert_play.html.Allis, L. V.; van der Meulen, M.; and van den Herik, H. J. "Proof-Number Search." Artificial Intelligence 66, 91-124, 1994.Allis, V. "A Knowledge-Based Approach of Connect-Four--The Game Is Solved: White Wins." Report IR-163 by the Faculty of Mathematics and Computer Science at the Vrije Universiteit Amsterdam, The Netherlands, 1988. Also Report CS 92-04 by the Faculty of General Sciences at the University of Limburg, Maastricht, The Netherlands, 1992. https://www.solitaireparadise.com/static/pdfs/victor-allis-knowledge-based-approach-of-connect-4.pdf.Bertoletti, G. "Velena: A Shannon C-Type Program Which Plays Connect Four Perfectly." http://www.ce.unipr.it/~gbe/velena.html.Bremer, L. "Mustrum." http://www.lbremer.de/mustrum_e.html.Dockhorn, F. "Gladiator 3.06." http://www.connectfour.net/download.html.Fierz, M. "4 in a Row." https://www.fierz.ch/4inarow.htm.Halabi, D. "TitOT: Think it Over Twice." http://corporate.skynet.be/bats/TitOT/.Johnson, M. "Connect Four." http://ourworld.compuserve.com/homepages/mikejohnson/Connect4.htm.Nahay, P. "Mega Tic-Tac-Toe." https://web.archive.org/web/20120309225046/http://pnahay.home.sprynet.com:80/games/MegaTTT.htm.Numberphile. "Connect Four." Dec. 1, 2013. https://www.youtube.com/watch?v=yDWPi1pZ0Po.Pomakis, K. "Connect 4." http://pomakis.com/~pomakis/c4/.Sloane, N. J. A. Sequence A090224 in "The On-Line Encyclopedia of Integer Sequences."Wiebus, S. "Connect4." https://web.archive.org/web/20090603075912/http://bodo.com:80/Applets/Connect4/.

Referenced on Wolfram|Alpha

Connect-Four

Cite this as:

Weisstein, Eric W. "Connect-Four." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Connect-Four.html

Subject classifications