boolean bWinLose = false;
      int num = 3;

       for (int i = 0 ; i < num ; i++)        {
         for (int j = 0 ;  j < num ; j++)
         {
           bWinLose = Vert(button[i*num], button[i*num+j]); 

           bWinLose = Hori(button[i+num], button[j*num+i]); 

           if (!bWinLose) return;
         }

       }
   if (bWinLose){
    TextView tv = (TextView) findViewById(R.id.textView1);
      tv.setText("성공");
   }

 

저대로라면 3x3 전체를 체크하고 맞으면 성공이라고 떠야는데 안떠요 ㅠㅠ

 

뭐가 문제죠??