Class GameModeSelector

java.lang.Object
mastermind.gui.scenes.Scene
mastermind.gui.scenes.GameModeSelector

public class GameModeSelector extends Scene
Prompts the user to select a game mode: Code Breaker or Code Maker.

- Code Breaker: The program tries to guess a secret code with algorithms,
- Code Maker: The user tries to guess a secret code generated by the program.

  • Constructor Details

    • GameModeSelector

      public GameModeSelector(JFrame frame)
      Creates a new GameModeSelector object that represents a scene for selecting the game mode.

      This constructor initializes the UI components required for the game mode selection. It configures the selector panel and the proceed button, adds them to the provided JFrame, and refreshes the frame to ensure the UI is updated.

      Parameters:
      frame - The JFrame to which the game mode selection UI components will be added.