Hi there. I need some help here because I am not all that clued up on maths. I have a 3d array, 4x4x4, totalling 64 cells. Now I need to know how many possible combinations there are too have 4 cells in a row, imagine in a connect 4 style. I have done it on paper and reckon there are 64 different combinations. Now if this is correct then I need to a formula to work out how many there are, a general formula so if the grid size was changed then it would still work.

Many thanks