public abstract class PebblePlaceInstance extends PebbleInstance
| Constructor and Description |
|---|
PebblePlaceInstance() |
PebblePlaceInstance(PebbleInstance p) |
| Modifier and Type | Method and Description |
|---|---|
int |
getScore()
Return the current score of the active game.
|
boolean |
isSolutionRefinable()
For optimization problems, for instance, this will return true.
|
boolean |
isValidSource(Vertex v)
This is used to determine if a vertex is valid in whatever game mode is implemented.
|
boolean |
usesAlgorithms()
If the game related to this problem requires running algorithms, this should return true.
|
addDoubleExtensionVertices, addExtensionVertices, addPebbles, addToNumberOfPebblingMoves, areAllCovered, areCovered, clearPebbles, clearPebbles, copyPuzzleSoItHasInitialStateTheSameAsMyCurrentState, coveredVerticesWithNoPebblesToString, efficientMovePebble, efficientUndoPebbleMove, getDefaultVertexDataObject, getNumberCoveredVertices, getNumberOfPebblingMoves, getNumberPebbles, getNumPebbles, getProcessedSolution, getState, isCovered, isEventForThisPuzzleType, isSolvable, isUncertain, isUnsolvable, movePebble, movePebbles, pebblesToString, recycle, removePebbles, setCovered, setCovered, setNumberOfPebblingMoves, setNumPebbles, setPebbles, setPebbles, setState, setUncovered, tryItResultsAreBinding, undoPebbleMove, undoPebbleMoves, undoRecycle, uniqueIdentifieraddDoppelganger, addGraph, addGraphWithData, addToSelected, addToSelected, addVertex, canRedo, canUndo, checkAndHandlePuzzleCompletion, clearAllSelections, clearHistory, clearTutorial, computeGlobalPoints, connectAllSelectedVertices, connectToSelected, convertMovesToTutorial, copyPuzzle, copyRequested, copySelected, createNewVertexForPuzzle, currentPuzzleDataToString, deleteSelected, disableHistory, disconnectFromSelected, disconnectSelected, doNotRecordGraphEvents, enableHistory, endGame, forceRedo, getAttemptName, getBasePoints, getCurrentAnnotation, getCurrentMoveOverview, getCurrentUndoableEvent, getData, getDescription, getDiameter, getDifficultyLevel, getEdgeDataClassName, getEditHelpClassName, getEditorClassName, getFamilyName, getFirstSelected, getFirstTimeBonus, getGameName, getGlobalBest, getGraph, getHelpClassName, getHighScoreBonus, getImprovementBonus, getInstanceClassName, getInterestingTutorialVertices, getMaximumXCoordinate, getMaximumYCoordinate, getMessage, getMinimumSelectedXCoordinate, getMinimumSelectedYCoordinate, getMinimumXCoordinate, getMinimumYCoordinate, getMode, getNumberOfEdges, getNumberOfMoves, getNumberOfVertices, getNumberSelected, getOldHighScore, getPersonalBest, getPlayClassName, getPuzzleID, getPuzzleInstanceName, getPuzzleName, getSelectedVertices, getSolution, getSolutionAsString, getSolutionID, getThemeClassName, getTimeTaken, getTopOfUndoStack, getTryItInstanceForUseOnPlayScreen, getTutorialData, getUserID, getVertexIndex, getVertices, getVisibility, getVisibleSources, goToNextEvent, grossHistoryDeleteLastEvent, grossHistoryGetLastAddedEvent, grossHistoryGetNextEvent, grossHistoryGetNextEventIndex, grossHistoryIsSaved, grossHistoryIteratorAtBeginning, grossHistoryIteratorAtEnd, grossHistoryNext, grossHistoryPrevious, grossHistorySetSaved, grossHistorySize, grossHistoryToBeginning, grossHistoryToEnd, initialPuzzleDataToString, isCurrentStateValidSolution, isFinishable, isInReplayOrEditTutorialMode, isLocked, isLowerScoreBetter, isPlayable, isSaved, isShowIndices, isSpecialCopyOK, isTutorial, isValidToTranslationSelection, isVisibleSource, makeCurrentStateInitialState, moveGraphEnded, moveSelectedVerticesEnded, moveStarted, pasteAndConnectCopyOfSelected, pasteCopyOfSelected, performEvents, performEvents, performTutorialEvents, reallySetLocked, recordGraphEvents, redo, removeFromSelected, removeFromSelected, resetVerticesToInitialLocations, restart, runAlgorithms, runuTryIt, selectAll, sendAlgorithmResult, sendMeaninglessEvent, setAttemptName, setData, setDefaultData, setDescription, setFinishable, setGlobalBest, setGraph, setInReplayOrEditTutorialMode, setLocked, setMessage, setMode, setPersonalBest, setPlayable, setPuzzle, setPuzzleID, setPuzzleName, setSaved, setShowIndices, setSolutionData, setSolutionID, setSolutionInformation, setUserID, setVisibleSources, startTimer, stopTimer, stringToPuzzleData, submit, toggleSelected, tutorialModeEnabled, undo, update, updateStateBasedOnAlgorithmResult, updateTimeTakenpublic PebblePlaceInstance()
public PebblePlaceInstance(PebbleInstance p)
public boolean isValidSource(Vertex v)
PebbleInstanceisValidSource in class PebbleInstancepublic int getScore()
PuzzleInstancegetScore in class PuzzleInstancepublic boolean isSolutionRefinable()
PuzzleInstanceisSolutionRefinable in class PuzzleInstancepublic boolean usesAlgorithms()
PuzzleInstanceusesAlgorithms in class PuzzleInstance