public static void main(String args[]) {
    Board b = new Board();
    
    b.loadBoardGraphFromResource("cs283/catan/resources/board.csv");
    b.loadBoardTilesFromResource("cs283/catan/resources/tiles.csv");

    for (Map.Entry<Coordinate, Node> x : b.nodeSet.entrySet()) {
        System.out.println(x.getKey());
    }
    
    for (Map.Entry<Coordinate, Tile> x : b.tileSet.entrySet()) {
        System.out.println("Tile: " + x.getKey() + "    roll: " + x.getValue().getRollNumber() + "\ttype: " + x.getValue().getTileType());
    }
    
    Scanner in = new Scanner(System.in);
    
    Player bob = new Player("Bob", 0);
    Player joe = new Player("Joe", 1);
    
    System.out.println(b.addSettlement(new Coordinate(0,0,2), joe, false, false));
    System.out.println(b.addSettlement(new Coordinate(0,0,4), bob, false, false));
    System.out.println(b.addSettlement(new Coordinate(1,-1,5), joe, false, false));
    System.out.println(b.addSettlement(new Coordinate(1,-1,1), joe, false, false));
    
    System.out.println(b.upgradeSettlement(new Coordinate(0, 0, 2), joe));
    
    System.out.println(b.addRoad(new Coordinate(0,0,4), new Coordinate(0, 0, 3), bob, false));
    System.out.println(b.addRoad(new Coordinate(0, 0, 3), new Coordinate(0, 0, 2), joe, false));
    System.out.println(b.addRoad(new Coordinate(0, 0, 2), new Coordinate(0, 0, 1), joe, false));
    
    
    System.out.println(b.addSettlement(new Coordinate(-2,2,0), bob, false, false));
    System.out.println(b.addRoad(new Coordinate(-2,2,0), new Coordinate(-2, 2, 1), bob, false));
    System.out.println(b.addRoad(new Coordinate(-2,2,1), new Coordinate(-2, 2, 2), bob, false));
    System.out.println(b.addRoad(new Coordinate(-2,2,3), new Coordinate(-2, 2, 2), bob, false));
    System.out.println(b.addRoad(new Coordinate(-2,2,3), new Coordinate(-2, 2, 4), bob, false));
    System.out.println(b.addRoad(new Coordinate(-2,2,4), new Coordinate(-2, 2, 5), bob, false));
    System.out.println(b.addRoad(new Coordinate(-2,2,0), new Coordinate(-2, 2, 5), bob, false));
    System.out.println(b.addRoad(new Coordinate(-2, 1, 2), new Coordinate(-2, 1, 3), bob, false));
    System.out.println(b.addRoad(new Coordinate(-2, 1, 3), new Coordinate(-2, 1, 4), bob, false));
    
    System.out.println(b.getResourceCardsEarned(5, joe));
    System.out.println(b.getResourceCardsEarned(5, bob));
    
    System.out.println(b.moveRobber(0, 0));
    
    System.out.println(b.getResourceCardsEarned(5, joe));
    System.out.println(b.getResourceCardsEarned(5, bob));
    
    System.out.println(b.moveRobber(0, 0));
    System.out.println(b.moveRobber(0, 0));
    System.out.println(b.moveRobber(1, -1));
    System.out.println(b.moveRobber(2, 0));
    
   // System.out.println(b.whoHasLongestRoad());
    
    System.out.println(b.addSettlement(new Coordinate(-2,1,3), joe, false, false));

   // System.out.println(b.whoHasLongestRoad());
    
    while (true) {
     // Extract the coordinate of the node from the node name
        int x = 0; int y = 0; int z = 0;
        int start = 0;
        int finish = 1;
        String input = in.nextLine();
        if (input.charAt(start) == '-') {
            finish++;
        }
        
        x = Integer.parseInt(input.substring(start, finish));
        
        start = finish;
        finish = start + 1;
        
        if (input.charAt(start) == '-') {
            finish++;
        }
        
        y = Integer.parseInt(input.substring(start, finish));
        
        z = Integer.parseInt(input.substring(finish, 
                                                input.length()));
        
        // Add the node to the set of nodes
        Coordinate coord = new Coordinate(x, y, z);
        
        
        start = 0;
         finish = 1;
        input = in.nextLine();
        if (input.charAt(start) == '-') {
            finish++;
        }
        
        x = Integer.parseInt(input.substring(start, finish));
        
        start = finish;
        finish = start + 1;
        
        if (input.charAt(start) == '-') {
            finish++;
        }
        
        y = Integer.parseInt(input.substring(start, finish));
        
        z = Integer.parseInt(input.substring(finish, 
                                                input.length()));
        
        // Add the node to the set of nodes
        Coordinate coord2 = new Coordinate(x, y, z);
        
        System.out.printf("%s is adjacent to %s: ", coord, coord2);
        System.out.printf("Normalized: %s %s\n", coord.normalizeCoordinate(), coord2.normalizeCoordinate());
        
        Node test = b.nodeSet.get(coord.normalizeCoordinate());
        System.out.println(test.isAdjacent(coord2.normalizeCoordinate()));
        
        break;
        
    }
    in.close();
} /** End of Temporary Method!!!!*/