Page 887 - 2
P. 887

|| winCheckOneR(x, y) || winCheckOneRD(x, y)
                || winCheckOneUp(x, y) || winCheckOneRU(x, y)


                || winCheckCenterLU(x, y) || winCheckCenterRL(x, y)
                || winCheckCenterRU(x, y) || winCheckCenterUD(x, y)


                    || (count == size)) {
               return true;
              } else {
                      return false;
                    }
              }


             public boolean winCheckUp(int x, int y) {//  위쪽
              try {
               for (int i = y; i < y + 5; i++) {
                if (map[y][x] != map[i][x])
                 return false;
               }
              } catch (ArrayIndexOutOfBoundsException e) {
               return false;
              }
              return true;
             }


             public boolean winCheckDown(int x, int y) {
              try {
               for (int i = y; i > y - 5; i--) {
                if (map[y][x] != map[i][x])
                 return false;
               }
              } catch (ArrayIndexOutOfBoundsException e) {
               return false;
              }
              return true;
             }


             public boolean winCheckRU(int x, int y) {
              try {
               for (int i = y, z = x; i > y - 5; i--, z++) {
                if (map[y][x] != map[i][z])
                 return false;
               }
              } catch (ArrayIndexOutOfBoundsException e) {
               return false;


                                                         - 887 -
   882   883   884   885   886   887   888   889   890   891   892