|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectks.common.games.SolitaireSolver
Starts separate thread to try each available move until the game is over. Make use of the fact that there are no drags, only instantaneous moves. So we can simply call refreshAllWidgets() to ensure all changes are reflected.
Creation date: (11/21/01 10:25:52 PM)
Constructor Summary | |
SolitaireSolver(Solitaire theGame)
SolitaireSolver constructor. |
Method Summary | |
void |
run()
Do the dirty work. |
void |
start()
Launch the thread to execute run. |
void |
stop()
Stop this thread. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SolitaireSolver(Solitaire theGame)
The given Solitaire game must implement SolitaireSolver
otherwise an exception will result.
Method Detail |
public void run()
run
in interface java.lang.Runnable
public void start()
public void stop()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |