Package mastermind.gui.scenes
Class CodeBreakerSelector
java.lang.Object
mastermind.gui.scenes.Scene
mastermind.gui.scenes.CodeBreakerSelector
Prompts the user to select a code-breaking algorithm.
Options:
- Donald Knuth 5-Guess Algorithm
- Medium Algorithm
- Basic Algorithm
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCodeBreakerSelector
(JFrame frame) Constructs a CodeBreakerSelector, which provides a user interface to select a code-breaking algorithm and proceed to the next scene. -
Method Summary
Methods inherited from class mastermind.gui.scenes.Scene
createDefaultScene
-
Constructor Details
-
CodeBreakerSelector
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.
-