Page 892 - 2
P. 892

}
              } catch (ArrayIndexOutOfBoundsException e) {
               return false;
              }
              return true;
             }


             public boolean winCheckCenterRU(int x, int y) {//  센터 라이트 대각선
              try {
               for (int i = y + 2, z = x - 2; i > y - 3; i--, z++) {
                if (map[y][x] != map[i][z])
                 return false;
               }
              } catch (ArrayIndexOutOfBoundsException e) {
               return false;
              }
              return true;
             }


             public boolean winCheckCenterLU(int x, int y) { //  센터 레프트 대각선
              try {
               for (int i = y + 2, z = x + 2; i > y - 4; i--, z--) {
                if (map[y][x] != map[i][z])


                 return false;
               }
              } catch (ArrayIndexOutOfBoundsException e) {


               return false;
              }
              return true;
             }
            }


























                                                         - 892 -
   887   888   889   890   891   892   893   894   895   896   897