Before running the Simulator the user must choose some input parameters. From the spec:
The user choices you must ask for are:
X dimension: the size of the grid from left to right; this is given in terms of the number of squares on the grid.
Y dimension: the size of the grid from left to right; this is given in terms of the number of squares on the grid. This may
be the same size as the X dimension, but that is not assumed.
Color1, Color2, and Color3: Choosing from choices you make available, the user picks three colors. Give the user 8 or
more choices.
Stopping criterion: The user picks a stopping criterion for the random painting. You must include these two criteria as
possible stopping points: as soon as the last unpainted square is painted for the first time; and the first time any square
gets its second paint blob (this criterion is reminiscent of the birthday paradox). You should think of at least one other
stopping criterion, and you may include more than one extra stopping criterion if you’d like.
We need to decide what that additional stopping criterion is.
Before running the Simulator the user must choose some input parameters. From the spec:
The user choices you must ask for are:
X dimension: the size of the grid from left to right; this is given in terms of the number of squares on the grid.
Y dimension: the size of the grid from left to right; this is given in terms of the number of squares on the grid. This may be the same size as the X dimension, but that is not assumed.
Color1, Color2, and Color3: Choosing from choices you make available, the user picks three colors. Give the user 8 or more choices.
Stopping criterion: The user picks a stopping criterion for the random painting. You must include these two criteria as possible stopping points: as soon as the last unpainted square is painted for the first time; and the first time any square gets its second paint blob (this criterion is reminiscent of the birthday paradox). You should think of at least one other stopping criterion, and you may include more than one extra stopping criterion if you’d like.
We need to decide what that additional stopping criterion is.