src/main/java/com/thiyagu_7/adventofcode/year2020/day20/SolutionDay20MyTry.java
private MatchingTiles match(String tileName, char[][] tile, Map<Alignment, char[][]> allCombinationOtherTiles) {

        MatchingTileAndAlignment top = checkTopAlignment(tileName, tile, allCombinationOtherTiles);
        MatchingTileAndAlignment bottom = checkBottomAlignment(tileName, tile, allCombinationOtherTiles);
        MatchingTileAndAlignment left = checkLeftAlignment(tileName, tile, allCombinationOtherTiles);
        MatchingTileAndAlignment right = checkRightAlignment(tileName, tile, allCombinationOtherTiles);

        MatchingTiles matchingTiles = new MatchingTiles();
        matchingTiles.top = top;
        matchingTiles.bottom = bottom;
        matchingTiles.left = left;
        matchingTiles.right = right;
        return matchingTiles;
    }
//compare current tile in 4 directions and 8 combinations of other (single) tile
compare current tile in 4 directions and 8 combinations of other (single) tile
compare current tile in 4 directions and 8 combinations of other ( single ) tile
private MatchingTiles match(String tileName, char[][] tile, Map<Alignment, char[][]> allCombinationOtherTiles) {
        MatchingTileAndAlignment top = checkTopAlignment(tileName, tile, allCombinationOtherTiles);
        MatchingTileAndAlignment bottom = checkBottomAlignment(tileName, tile, allCombinationOtherTiles);
        MatchingTileAndAlignment left = checkLeftAlignment(tileName, tile, allCombinationOtherTiles);
        MatchingTileAndAlignment right = checkRightAlignment(tileName, tile, allCombinationOtherTiles);
        MatchingTiles matchingTiles = new MatchingTiles();
        matchingTiles.top = top;
        matchingTiles.bottom = bottom;
        matchingTiles.left = left;
        matchingTiles.right = right;
        return matchingTiles;
    }
private MatchingTiles match ( String tileName , char [ ] [ ] tile , Map < Alignment , char [ ] [ ] > allCombinationOtherTiles ) { MatchingTileAndAlignment top = checkTopAlignment ( tileName , tile , allCombinationOtherTiles ) ; MatchingTileAndAlignment bottom = checkBottomAlignment ( tileName , tile , allCombinationOtherTiles ) ; MatchingTileAndAlignment left = checkLeftAlignment ( tileName , tile , allCombinationOtherTiles ) ; MatchingTileAndAlignment right = checkRightAlignment ( tileName , tile , allCombinationOtherTiles ) ; MatchingTiles matchingTiles = new MatchingTiles ( ) ; matchingTiles . top = top ; matchingTiles . bottom = bottom ; matchingTiles . left = left ; matchingTiles . right = right ; return matchingTiles ; }
compare current tile in 4 directions and 8 combinations of other (single) tile
compare current tile in 4 directions and 8 combinations of other ( single ) tile