Investigate the number of winning lines in the game Connect 4.

Authors Avatar

Year 11 mathematics coursework

 – Connect 4 Investigation.

This is a winning line in the game Connect 4 on a 4x5 board. Winning lines can be horizontal, vertical or diagonal.

Investigate the number of winning lines in the game Connect 4.

The task asks for an investigation of the number of Connect 4 solutions in different sized grids. In Connect 4 the rules are that a winning line is a straight line of four connected counters in either a vertical, horizontal or diagonal line. To investigate this I must count the total number of possible winning solutions in a grid. The grid does not have too be any particular size however I will begin my investigation by using small grids, therefore the number of solutions will be smaller and easier to count. My results will be recorded in tables to make it easier to spot any patterns or trends. My aim is to establish formulae’s that will enable me too calculate the total number of winning lines for any given grid size. These are the steps I will take to complete the set task:

1. I will draw a range of differently sized grids and count the total amount of possible winning solutions each has on it, this will aid me in creating a formula.

2. After I have gathered all my results I will record them in tables.

3. Using the table I will look for patterns and possible links.

4. Using the data I have collected I will attempt to calculate a Connect 4 general formula.

5. After I have established this formula I will try to extend the investigation perhaps for a new game of Connect 5.

To start the task I decided to find a formula for a basic game of Connect 4.The formula I decided to establish first was the one that will tell me how to work out the number of horizontal winning lines on a small grid. I began by drawing small grids and drawing on the winning lines.


I then recorded the results I calculated into a table (below) and spotted the following pattern -

Join now!

To find the number of winning lines (horizontal only).

Therefore on a 1 x (w) board, the number of winning lines = w - 3

I then decided to alter the height of the grid, instead of constantly keeping it at 1 square I decide to increase it by 1 square on each separate grid. However I still only drew on the winning horizontal lines.

These are my results ...

This is a preview of the whole essay