Class FullScreenSolveShow


  • public class FullScreenSolveShow
    extends Object
    A GUI that produces a tiled layout with several independent games solved by the same solver. In order to start this GUI, the main method receives all its configuration via the CLI. It can handle the following CLI parameters:
    1. The fully qualified name of the solver class to be used in all GamePanels
    2. The dimensions of the MineMap (e.g., 20x20)
    3. The mine ratio (e.g., .12, for details consult MineSweeper which have several suggested mine ratios and their corresponding names in the GUI)
    4. The amount of time introduced by the Minemap in each AI instructed operation in milliseconds (e.g., 1000) - useful to slow down the AI to visually pleasing speeds. Setting this below 100 is really dangerous and could result in the rapid spawning and disappearance of windows.
    5. The number of games to be played in a row
    6. The number of games to be played in a column
    Apart from the several games shown in parallel. If a game ends (whatever is the outcome) its corresponding game panel is also terminated. To see how the AI performed so far the GUI also shows some simple statistics (in terms of won and lost games).
    Once the games start, the GUI can be terminated by clicking on any of the close (x) buttons.
    Author:
    "Gabor Kecskemeti, Department of Computer Science, Liverpool John Moores University, (c) 2019"
    • Field Detail

      • won

        static int won
      • lost

        static int lost
    • Constructor Detail

      • FullScreenSolveShow

        public FullScreenSolveShow()