Game.java
public static void main(String[] args)
    {
        Maze m = null;
        
        if(args[0].equals("Mouseville")) {
            m = new Mouseville();
        }
        else if(args[0].equals("Pacman")) {
            m = new PacmanMaze();
        }
        else if(args[0].equals("Digger")) {
            m = new Digger();
        }
        //default if nothing is given as the parameter
        else
            m = new Mouseville();
        
        Game g = new Game(m);
        g.play();
    }
/**
     * Launches the game by instantiating a new game and calling play() on it.
     * 
     * With the main function you can input the name of the game as an argument to an
     * array of strings. 
     * Names can be seen below and are pretty straightforward for what game they represent.
     */
Launches the game by instantiating a new game and calling play() on it.

With the main function you can input the name of the game as an argument to an
array of strings.
Names can be seen below and are pretty straightforward for what game they represent.
Launches the game by instantiating a new game and calling play () on it . With the main function you can input the name of the game as an argument to an array of strings . Names can be seen below and are pretty straightforward for what game they represent .
public static void main(String[] args)
    {
        Maze m = null;
        if(args[0].equals("Mouseville")) {
            m = new Mouseville();
        }
        else if(args[0].equals("Pacman")) {
            m = new PacmanMaze();
        }
        else if(args[0].equals("Digger")) {
            m = new Digger();
        }
        else
            m = new Mouseville();
        Game g = new Game(m);
        g.play();
    }
public static void main ( String [ ] args ) { Maze m = null ; if ( args [ 0 ] . equals ( "Mouseville" ) ) { m = new Mouseville ( ) ; } else if ( args [ 0 ] . equals ( "Pacman" ) ) { m = new PacmanMaze ( ) ; } else if ( args [ 0 ] . equals ( "Digger" ) ) { m = new Digger ( ) ; } else m = new Mouseville ( ) ; Game g = new Game ( m ) ; g . play ( ) ; }
Launches the game by instantiating a new game and calling play() on it.
Launches the game by instantiating a new game and calling play () on it .
//default if nothing is given as the parameter