Package mastermind.gui.scenes
Class CodeMakerResult
java.lang.Object
mastermind.gui.scenes.Scene
mastermind.gui.scenes.CodeMakerResult
Represents the scene displayed to the user after the Mastermind game has
concluded in the Code Maker mode.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCodeMakerResult
(JFrame frame, Status status, Code correctCode) Constructs a new Result scene to display the outcome of the Mastermind game. -
Method Summary
Methods inherited from class mastermind.gui.scenes.Scene
createDefaultScene
-
Constructor Details
-
CodeMakerResult
Constructs a new Result scene to display the outcome of the Mastermind game.- Parameters:
frame
- The parent JFrame that serves as the container for this scene.status
- The game status, indicating whether the code breaker has won or lost.correctCode
- The correct code that was to be guessed in the game.- Throws:
IllegalArgumentException
- If the provided status is not MastermindSolver.Status.Win or MastermindSolver.Status.Lose.
-