Learn R Programming

fourinarow (version 0.1.1)

getSetsof4: All possible sets of 4 in a row

Description

Manually constructs a dataset containing all possible winning sets of four in a standard (6x7) game of Four in a Row.

Usage

getSetsof4()

Arguments

Value

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.

Examples

Run this code
getSetsof4()

Run the code above in your browser using DataLab