For cube games, the minimum for any dimension should be 2, as there is
no net of the cube that is only one row/column. The previous logic
would permit a 1x7 game (for example) that could never be solved.
return "Unrecognised solid type";
if (solids[params->solid]->order == 4) {
- if (params->d1 <= 0 || params->d2 <= 0)
- return "Both grid dimensions must be greater than zero";
+ if (params->d1 <= 1 || params->d2 <= 1)
+ return "Both grid dimensions must be greater than one";
} else {
if (params->d1 <= 0 && params->d2 <= 0)
return "At least one grid dimension must be greater than zero";