public interface IPuzzleService
Modifier and Type | Method and Description |
---|---|
jadex.commons.future.IFuture<java.lang.Void> |
addHighscore(HighscoreEntry entry)
Add a highscore entry and save the highscore list.
|
jadex.commons.future.IFuture<java.util.SortedSet<HighscoreEntry>> |
getHighscore(int size)
Get the highscore entries for a given board size.
|
jadex.commons.future.IFuture<Move> |
hint(Board board,
long timeout)
Solve the game and give a hint on the next move.
|
jadex.commons.future.IFuture<Move> hint(Board board, long timeout)
board
- The current board state.timeout
- A timeout to stop, when no solution is found in time (-1 for no timeout).java.lang.Exception
- in future, when puzzle can not be solved in time.jadex.commons.future.IFuture<java.lang.Void> addHighscore(HighscoreEntry entry)
entry
- The highscore entry.jadex.commons.future.IFuture<java.util.SortedSet<HighscoreEntry>> getHighscore(int size)
size
- The board size (e.g. 3, 5, ...).