Three-Dimensional Noughts and Crosses: A Combinatorial Problem


Parameters

Table 17.1 shows the parameters that are used in this example.

Table 17.1: Parameters

Parameter Name

Interpretation

n

Number of cells per line

num_lines

Number of lines

num_balls[color]

Number of balls of each color

assigned_color[i,j,k]

Color assigned to cell $(i,j,k)$