Changeset 24 for trunk


Ignore:
Timestamp:
Dec 20, 2005, 12:09:15 PM (14 years ago)
Author:
jtv
Message:

Check for excessive numbers of mines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ui_web.c

    r22 r24  
    168168    }
    169169
     170    if (mines >= rows*cols)
     171    {
     172      puts("<p><em>That's too many mines!</em></p>");
     173      puts(footer);
     174      exit(0);
     175    }
     176
    170177    /* We have parameters.  Create new game. */
    171178    seed_randomizer();
Note: See TracChangeset for help on using the changeset viewer.