Page 886 - 2
P. 886

public short getWhite() {
              return WHITE;
             }


             public short getXY(int y, int x) {
              return map[y][x];
             }
             public void remove(int y,int x){
                     map[y][x] = 0;
                     count--;
             }


             public boolean getCheck() {
              return checkBNW;
             }


             public void changeCheck() {
              if (checkBNW) {
               checkBNW = false;
              } else {
               checkBNW = true;
              }
             }


             public void setMap(int y, int x) { // checkBNW 를 확인해 true  일 때 map    에 BLACK, false 일 때 WHIT
            E 저장
              if (checkBNW) {
               map[y][x] = BLACK;
              } else {
               map[y][x] = WHITE;
              }
              count++;
              System.out.println(size+","+count);
             }


             public boolean winCheck(int x, int y) { //  승리확인
              if (winCheckL(x, y) || winCheckLD(x, y) || winCheckLU(x, y)
                || winCheckR(x, y)


                || winCheckRD(x, y) || winCheckRU(x, y) || winCheckUp(x, y)
                || winCheckDown(x, y)


                || winCheckOneDown(x, y) || winCheckOneL(x, y)
                || winCheckOneLD(x, y) || winCheckOneLU(x, y)




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