@@ -0,0 +1,1768 @@
+/**%0A *%0A * @author Ryan J. Marcotte%0A */%0A%0Apackage game;%0A%0Aimport org.junit.*;%0Aimport static org.junit.Assert.*;%0A%0Aimport java.util.ArrayList;%0A%0Apublic class KingTest%0A%7B%0A    @Test%0A    public void testBasicMoveLocations()%0A    %7B%0A        ChessBoard board = new ChessBoard();%0A%0A        final int K1_EXPECTED%5B%5D = %7B51, 52, 53, 59, 61%7D;%0A        final int K2_EXPECTED%5B%5D = %7B19, 20, 21, 27, 29, 35, 36, 37%7D;%0A        final int K3_EXPECTED%5B%5D = %7B26, 27, 28, 34, 42, 43, 44%7D;%0A        final int K4_EXPECTED%5B%5D = %7B27, 28, 29, 37, 43, 44, 45%7D;%0A%0A        King k1 = new King(board.getSquareAt(60));%0A        King k2 = new King(board.getSquareAt(28));%0A        King k3 = new King(board.getSquareAt(35));%0A        King k4 = new King(board.getSquareAt(36));%0A%0A        ArrayList%3CSquare%3E k1Actual = k1.generateMoveLocations();%0A        ArrayList%3CSquare%3E k2Actual = k2.generateMoveLocations();%0A        ArrayList%3CSquare%3E k3Actual = k3.generateMoveLocations();%0A        ArrayList%3CSquare%3E k4Actual = k4.generateMoveLocations();%0A        %0A        assertEquals(K1_EXPECTED.length, k1Actual.size());%0A%0A        for (int i = 0; i %3C K1_EXPECTED.length; i++)%0A            assertEquals(K1_EXPECTED%5Bi%5D, k1Actual.get(i).getIntLocation());%0A%0A        assertEquals(K2_EXPECTED.length, k2Actual.size());%0A%0A        for (int i = 0; i %3C K2_EXPECTED.length; i++)%0A            assertEquals(K2_EXPECTED%5Bi%5D, k2Actual.get(i).getIntLocation());%0A        %0A        assertEquals(K3_EXPECTED.length, k3Actual.size());%0A%0A        for (int i = 0; i %3C K3_EXPECTED.length; i++)%0A            assertEquals(K3_EXPECTED%5Bi%5D, k3Actual.get(i).getIntLocation());%0A%0A        assertEquals(K4_EXPECTED.length, k4Actual.size());%0A%0A        for (int i = 0; i %3C K4_EXPECTED.length; i++)%0A            assertEquals(K4_EXPECTED%5Bi%5D, k4Actual.get(i).getIntLocation());%0A    %7D%0A%7D%0A

add test for the basic move locations for the king