Class ScribeStrategy.Superposition

java.lang.Object
johnsmith.enchantingoverhauled.menu.scribe.controller.ScribeStrategy.Superposition
All Implemented Interfaces:
ScribeStrategy
Enclosing interface:
ScribeStrategy

public static final class ScribeStrategy.Superposition extends Object implements ScribeStrategy
Encapsulates the algorithmic logic of the "Superposition" Minesweeper mini-game variant.

This variant prevents the player from encountering 50/50 guessing situations by lazily evaluating mine layouts asynchronously behind the scenes as the player clicks, only collapsing into a concrete board state when necessary.

  • Constructor Details

  • Method Details

    • processInput

      public CompletableFuture<Void> processInput(ScribeInput input)
      Description copied from interface: ScribeStrategy
      Processes an incoming interaction payload, delegating to the appropriate logic based on the current game state and action type.
      Specified by:
      processInput in interface ScribeStrategy
      Parameters:
      input - The decoded user interaction.
      Returns:
      A CompletableFuture representing the execution of the input, enabling async chaining.