summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9056046)
can guarantee to fit into the grid!
[originally from svn r5867]
return "Width must be greater than zero";
if (params->h <= 0)
return "Height must be greater than zero";
return "Width must be greater than zero";
if (params->h <= 0)
return "Height must be greater than zero";
+ if (params->n > params->w * params->h - 9)
+ return "Too many mines for grid size";
/*
* FIXME: Need more constraints here. Not sure what the
/*
* FIXME: Need more constraints here. Not sure what the