bridge
Class BridgeConsole
java.lang.Object
bridge.BridgeConsole
public class BridgeConsole
- extends java.lang.Object
This class provides a terminal console interface to the Bridge
Crossing problem.
The user attempts to solve the problem, with invalid moves rejected,
and the user can quit at any time.
If a move is valid, the new state is displayed.
If the solution is found, a message is given showing the number of moves
attempted, and processing halts.
Method Summary |
static void |
main(java.lang.String[] args)
This method launches the console |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BridgeConsole
public BridgeConsole(BridgeProblem problem)
- Creates a bridge problem console user interface. An introduction
is displayed, the move count is initialized, the initial state is
displayed, the first move is solicited, and problem solution proceeds.
- Parameters:
problem
- the problem
main
public static void main(java.lang.String[] args)
- This method launches the console
- Parameters:
args
- ignored