Class CodeMakerResult

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

public class CodeMakerResult extends Scene
Represents the scene displayed to the user after the Mastermind game has concluded in the Code Maker mode.
  • Constructor Details

    • CodeMakerResult

      public CodeMakerResult(JFrame frame, Status status, Code correctCode)
      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.