@@ -0,0 +1,2258 @@
+package org.amc.game.chess;%0A%0Aimport static org.junit.Assert.assertTrue;%0Aimport static org.junit.Assert.fail;%0A%0Aimport org.amc.game.chess.ChessBoard.Coordinate;%0Aimport org.amc.game.chess.view.ChessBoardView;%0A%0Apublic class ChessBoardUtil %7B%0A%09private ChessBoard board;%0A     %0A    public ChessBoardUtil(ChessBoard board) %7B%0A        this.board = board;%0A    %7D%0A    %0A    public Move newMove(String start, String end) %7B%0A        return new Move(start + Move.MOVE_SEPARATOR + end);%0A    %7D%0A    %0A    public void add(ChessPiece piece, String location) %7B%0A        board.put(piece, new Location(location));%0A    %7D%0A    %0A    public void addPawnPiece(Colour colour, String location) %7B%0A        add(PawnPiece.getPiece(colour), location);%0A    %7D%0A    %0A    public ChessPiece getPiece(String location) %7B%0A        return board.get(new Location(location));%0A    %7D%0A    %0A    public void remove(String location) %7B%0A    %09board.remove(new Location(location));%0A    %7D%0A%0A    public static void compareBoards(ChessBoard firstBoard, ChessBoard secondBoard) %7B%0A        for(Coordinate coord : Coordinate.values()) %7B%0A            for(int i = 1; i %3C= ChessBoard.BOARD_WIDTH; i++) %7B%0A                Location location = new Location(coord, i);%0A                ChessPiece pieceOne = firstBoard.get(location);%0A                ChessPiece pieceTwo = secondBoard.get(location);%0A                if(pieceOne == null) %7B%0A                    if(pieceTwo != null) %7B%0A                        fail(%22First board is missing a Chess Piece%22);%0A                    %7D%0A                %7D else %7B%0A                    if(pieceTwo == null) %7B%0A                        fail(%22Second board is missing a Chess Piece%22);%0A                    %7D else %7B%0A                        assertTrue(pieceOne.getColour().equals(pieceTwo.getColour()));%0A                        assertTrue(pieceOne.getClass().equals(pieceTwo.getClass()));%0A                    %7D%0A                %7D%0A            %7D%0A        %7D%0A    %7D%0A    %0A    public static void compareBoardsAndDisplay(ChessBoard firstBoard, ChessBoard secondBoard) %7B%0A        ChessBoardView view1 = new ChessBoardView(firstBoard);%0A        ChessBoardView view2 = new ChessBoardView(secondBoard);%0A        %0A        view1.displayTheBoard();%0A        view2.displayTheBoard();%0A        compareBoards(firstBoard, secondBoard);%0A    %7D%0A%7D

fix accidental deletion of file contents