bridge
Class BridgeConsole

java.lang.Object
  extended by 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.


Constructor Summary
BridgeConsole(BridgeProblem problem)
          Creates a bridge problem console user interface.
 
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
 

Constructor Detail

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
Method Detail

main

public static void main(java.lang.String[] args)
This method launches the console

Parameters:
args - ignored