# Winning Strategies for Connect 4 or Four in a Line Games

Updated on November 14, 2016

John uses research skills (Ph D) & 30 years as CEO, manager to develop reviews for time management, productivity, staff relations, business

## Connect 4 - Simple to Play, Hard to Develop a Program to Play It

I remember playing Connect 4 with my 3-year old son was extremely annoying as he was so hard to beat, even without cheating!

He is now a teenager and has an assignment to devise an online program for playing Connect 4.

Well now is the time for an update and to learn some strategies and tactics that will help you win this fascinating game. Also it is interesting to learn about how people have developed programs to play this game against a computer so that it always wins.

Connect Four (which is also known as Plot Four, Four in a Line, Four Up, Find Four and Four in a Row) is a game for two players in which the first players select a color (usually red) and then players take turns adding their color-coded discs from the top into one of a seven-stack, six-row grid that is vertically suspended (see the image). The disc-shaped pieces drop directly down, filling the next accessible space inside the column.

The aim of the game is to get four of your own colored disks in a line either horizontally, vertically or diagonally before your adversary can manage to get-4-inline. If neither contestant has managed to get four-in-line before the grid is completely fill the game is drawn. The game begins with an empty grid and red normally starts first. There is a major advantage to starting first and so players toss for who is to start and take turns thereafter.

## Connect 4 - The solution

The solution to the game was explained mathematically and a computer solution devised by James D. Allen on 1 October 1988, and completely separartely by Victor Allis on 16 October 1988. These programs devised from these algorithms are so good that a computer can force a win every time if it starts the middle column. It can also win most games when it starts second. These solutions are quite complex and James Allen did his Masters Degree on the problem

There are a diverse range of websites where you can play Connect 4 online or you can download software to run the game for your computer. You can also buy the game at you local toys store.

The first one listed below is the best - you can play another human or a computer, and even watch your computer play itself - the first player (computer) always wins. Follow the instruction on the page to select your language. Both this one and the next one are very annoying because if the computer starts first – it always wins! The other programs allow you to set a level so you have a chance. There are many more available.

## Online Connect 4 Games and Demonstrations

Online Game
URL
http://www.lbremer.de/mustrum_e.html
Connect Four Playground - wins every time
homepages.cwi.nl/~tromp/c4/c4.html
Connect 4 Online #
http://www.mathsisfun.com/games/connect4.html
Agame Online Version
http://www.agame.com/game/Connect-Four.html
n-in a row (expanded version)
http://www.pomakis.com/c4/online/c4.cgi
++ lots more

## Connect 4 - Strategy

Some of the common strategies used when playing connect-four with humans are discussed below

Always start in the middle. If you start first, always start in the middle. It is always the best strategy and it will give you more wins. If you go second, then add your disk directly on top of the centre disk if you opponent plays there or to either of the two columns directly beside centre primarily for defence. Playing on top of your opponent or beside his/her disk is best otherwise your opponent has a chance build either a two-in-a-row diagonal, or a two-in-a-row horizontal which gives them an advantage.

The centre area is obviously where most of the winning combinations are found because there are more chances of building winning 4-in-a-row lines. As a result, the middle squares are more valuable. The diagram below shows the number of winning groups (sets of buttons in a row) that each square offers.

Surround to conquer your opponent. If your opponent is building in the centre or building a core group, move to cover his/her winning moves by adding blocking disks on top of him. However be observant and stop our opponent building horizontal three-in-a-row sequences. Try to stay on the offensive if you can, but defend when necessary.

Always look out for force wins or force losses. Look out for your opponent trying to make a three-in-a-row diagonal directly linked to a three-in-a-row horizontal, which is a winning combination. This is an excellent strategy as it forces you to block one winning space, only to lose on the next turn. Think well ahead on each of your turns and see how you can reverse the position.

Forced moves can often give you a winning position. Building 3-in-a-row vertically will seldom not be seen by your opponent. They will have no option but to block it, or else they will lose. This means that they will effectively lose a chance to build a winning position by blocking you. But you will have 3 of your pieces all stacked together, which can be readily built next to, and you will now have many ways to branch out. You opponent will face a difficult job blocking off all your paths as a result, and this puts you in a good position for a win.

Try to kill off columns when you are behind. Often when you start second you will feel like you are always defending. To make things easier, try getting a 3-in-a-row combination in either the 6th or 2nd columns. You will reduce he options and may disrupt your opponent's strategy. If they try to stop you from blocking column, they will waste moves and give you to go on the offensive.

When your get a chance count the spots left on the board. Towards the end of the game, hen you get a chance, count the spots to see who is going to go where when you have to place disks in dead columns. Counting the spots will help you see if you are going to block your chances or will give your opponent an easy win. If you count remaining spots, and see that you are going to win, play defensive and work on using the dead columns to get a chance to win.

0

83

0

## Popular

12

17

• ### Review of Payday Board Game

5

Submit a Comment
• Kimberly Vaughn

6 years ago from Midwest

Great suggestions! My son and I play Connect 4 3D. He usually kicks my butt. I will have to try these!

• Nick

7 years ago

I've been playing Connect 4 for the last three years by practicing on Mustrum. It plays a perfect game and always wins when it starts first. Out of the other sites only connect 4 playground plays perfectly. I am at a level that when I start first against these programs i win 90-95% of the time. And yes, the player who starts first always wins provided the player plays perfectly which is not easy. The first player always controls the first, third and fifth rows while the second player controls the second, fourth and sixth rows.

• ace

7 years ago

these r nt tricks.. tis z hw u play.. i wanted to knw sum tricks..

• ace

7 years ago

these tricks we already use.. & yeah 1st turn z a big advantage.. me & my bro. alwaz fight on who z playin' 1st

• Arthific

7 years ago

well, everyone here that states that going first isn't especially better, well, that's not true actually:

Victor Allis studied connect four for his master's thesis, and he proved that the one that begins, (if he plays in the middle square) ALWAYS wins, whatever the opponent does. For interested readers, look for his scription online, shouldn't be hard to find!

• Nikita

7 years ago

My grandmother is beating me at this sometimes I get a little mad but we laugh and bake browines.

P.S. They were very good.

• Hoot

7 years ago

I'm 24 and I play this game with my son and we almost always end up in a draw. These tips might make beat him thanks..............:- )(-::-)(-::-)(-::-)(-::-)

• hey

7 years ago

None of these are 100%.

They can be beaten at some strats even when they go first. I'd say they are 90%

• lahiru

7 years ago

goinG first has more opportunities to win the match

• itsmonkeyboy

7 years ago from London, UK

Haha, I am going to have to keep this hub away from our boy as I tend to have a habit of beating him!

• Bib

7 years ago

The computer always wins when I play on expert. Help

• John allen

7 years ago

WRONG

• Michael

8 years ago

i find it best to use the pyramid strategy

• tracey1978

8 years ago

hi, i played this game when i was a kid, so when i play this game with my kids laugh when i win, but when they win they laugh at me. It's also a great game and a easy game to learn your kids.

• Cribbages

8 years ago

thank, it was interesting.

• Cribbage

8 years ago

Wow, I like it.

• Rob Crane

8 years ago

This idea that going first is good seems to be erroneous. The best "expert" computer (Fantastic 4 in a Row) that I have found never loses going second but can be beaten with careful play if it goes first. Because of the even number of squares one can force the player going first to drop a stone in an empty column and win the game.

• jrol

8 years ago

i dont think going first means your always going to win and going in the middle i start second and play my first disk next to the middle and i get the same results as playing in the middle.i think it depends on what sort of player you are playing but good advice for first timers

• Stephen Walker

8 years ago

Great game. Just respond to what your opponent does to make sure they don't win and wait for a mistake from them to win.

• latrell lugtu

8 years ago

i love this game

• bob

8 years ago

going second has some advantages. you can often force your opponent into helping you win

• jordyn

9 years ago

i love this game

• be3

9 years ago

I don't think there is a big advantage going first.

• MrsKnowledge

9 years ago from Spanaway

I find it funny how a game so simple can be so competitive. I have seen grown men screaming at little kids and talking trash after beating them, it was quite hilarious.

• AUTHOR

Dr. John Anderson

9 years ago from Australia on Planet Water

Hi Nicky,

• nicky

9 years ago

Well i am only nine and i beat my dad going second most the time. So u might want to edit your site.well maybe not because then again I always use yellow, and yellow is my lucky color.

• SidneyMorgan

9 years ago from Australia

Like you I am often beaten by my kids at this game. After reading your hub I think it’s time for a rematch when they wake up in the morning. Hmm I can’t wait .....

working