The size of the field is set by the program's mandatory argument.

  • This should be a positive integer, greater than one, specifying the number of rows and columns of the field (which is always square).

  • Erroneous, inappropriate and excessive arguments should be intercepted: decide whether to use default field size or terminate the program but always inform the user.

  • The default bombs button starts a new game with a specific field configuration (see later screenshot).

  • The randomise button also starts a new game, but with a random field configuration in which each square has a one in three chance of containing a bomb.

  • The quit button ends the Minefield program.

  • The GUI displays a label showing the number of unused flags.