powered by
Manually constructs a dataset containing all possible winning sets of four in a standard (6x7) game of Four in a Row.
6x7
getSetsof4()
A matrix with 69 rows and 4 columns. Each row contains numeric indices for a potential winning set of four in a row. For example,
sets[1,] represents the set of four vertical spaces starting in the top left corner.
sets[1,]
Run the code above in your browser using DataLab