src/Visualizer.java
/**
     * Prints all valid Visualizer commands.
     */
Prints all valid Visualizer commands.
Prints all valid Visualizer commands .
private void displayValidCommands() {
        System.out.println("Things you can tell the Visualizer to do:");
        System.out.println("\tstep n (n is a non-negative integer):");
        System.out.println("\t\tAdvances program by at most n steps and " +
                "displays the program state at the end of each step.");
        System.out.println("\tstepuntil pc (pc is a non-negative integer):");
        System.out.println("\t\tAdvances program until its program counter " +
                "reaches the value pc and displays the program state at the " +
                "end of each step.");
        System.out.println("\trun:");
        System.out.println("\t\tFinishes execution of the program and " +
                "displays the program state at the end of each step.");
        System.out.println("\tdisplaycube id (id is a non-negative integer):");
        System.out.println("\t\tDisplays the cube with ID id.");
        System.out.println("\trestart:");
        System.out.println("\t\tResets the program's state/memory.");
        System.out.println("\tcode:");
        System.out.println("\t\tPrints the code's instruction sequence as an " +
                "indexed list.");
        System.out.println("\texit:");
        System.out.println("\t\tExits the Visualizer.");
    }
private void displayValidCommands ( ) { System . out . println ( "Things you can tell the Visualizer to do:" ) ; System . out . println ( "\tstep n (n is a non-negative integer):" ) ; System . out . println ( "\t\tAdvances program by at most n steps and " + "displays the program state at the end of each step." ) ; System . out . println ( "\tstepuntil pc (pc is a non-negative integer):" ) ; System . out . println ( "\t\tAdvances program until its program counter " + "reaches the value pc and displays the program state at the " + "end of each step." ) ; System . out . println ( "\trun:" ) ; System . out . println ( "\t\tFinishes execution of the program and " + "displays the program state at the end of each step." ) ; System . out . println ( "\tdisplaycube id (id is a non-negative integer):" ) ; System . out . println ( "\t\tDisplays the cube with ID id." ) ; System . out . println ( "\trestart:" ) ; System . out . println ( "\t\tResets the program's state/memory." ) ; System . out . println ( "\tcode:" ) ; System . out . println ( "\t\tPrints the code's instruction sequence as an " + "indexed list." ) ; System . out . println ( "\texit:" ) ; System . out . println ( "\t\tExits the Visualizer." ) ; }
Prints all valid Visualizer commands.
Prints all valid Visualizer commands .