Class CodeBreakerSelector

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

public class CodeBreakerSelector extends Scene
Prompts the user to select a code-breaking algorithm.

Options:
- Donald Knuth 5-Guess Algorithm
- Medium Algorithm
- Basic Algorithm

  • Constructor Details

    • CodeBreakerSelector

      public CodeBreakerSelector(JFrame frame)
      Constructs a CodeBreakerSelector, which provides a user interface to select a code-breaking algorithm and proceed to the next scene.

      This constructor initializes the selection panel with several algorithm options, a proceed button, and registers an event handler to handle user interaction. It also refreshes the parent frame to reflect the changes.

      Parameters:
      frame - The parent JFrame where this selector will be displayed.