Package mines.MineSolver

Examples of mines.MineSolver.MinesSolverInternalError


   * @param coveredCoord Coordinates of field to mark.
   */
  void markMine(Coord coveredCoord) {
    GUI_FIELD realValue = mRealMinefield.get(coveredCoord);
    if (!realValue.equals(GUI_FIELD.MINE)) {
      throw new MinesSolverInternalError("Bad evaluation of mine "
          + " at coord " + coveredCoord);
    }

    signalToGUI(mFieldMarkMineSignal, coveredCoord);
  }
View Full Code Here


   * @param coveredCoord Coordinates of field to mark.
   */
  void markClearField(Coord coveredCoord) {
    GUI_FIELD realValue = mRealMinefield.get(coveredCoord);
    if (realValue.equals(GUI_FIELD.MINE)) {
      throw new MinesSolverInternalError("Bad evaluation of clear "
          + " at coord " + coveredCoord);
    }

    signalToGUI(mFieldMarkClearSignal, coveredCoord);
  }
View Full Code Here

   * @param coveredCoord Coordinates of field to reveal.
   */
  void revealClearField(Coord coveredCoord) {
    GUI_FIELD realValue = mRealMinefield.get(coveredCoord);
    if (realValue.equals(GUI_FIELD.MINE)) {
      throw new MinesSolverInternalError("Bad evaluation of clear "
          + " at coord " + coveredCoord);
    }

    signalToGUI(mFieldRevealedSignal, coveredCoord);
  }
View Full Code Here

            continueTesting = true;
          break;

          default:
            throw new MinesSolverInternalError("Unexpected value " + result);
        }
      }
    } catch (ComputationAbortedException abortEx) {
      return false;
    } catch (MinesSolverInternalError internalEx) {
View Full Code Here

TOP

Related Classes of mines.MineSolver.MinesSolverInternalError

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.