アットウィキロゴ

q222LL

package koma;
 
 
public class two {
 
    String[] hand=new String[50];
    String mode;
    int[] pos=new int[8];
    int[] koma_sel=new int[6];
    int number_sel;
    int[][] pos_two=new int[50][9];
    int number_two;
 
void makedata(){
 
    select();
 
    int s,sx;
    int[] c=new int[10];
    for(s=1;s<10;s++){
    c[s]=0;    
    }
 
    for(s=1;s<7;s++){
    sx=pos[s];    
    c[sx]=100;
    }
    int m;
    int tx=0;
    for(s=1;s<number_sel+1;s++){
    int s1=koma_sel[s];
    for(sx=1;sx<10;sx++){
    if(c[sx]<50){
     tx=tx+1;
    for(m=1;m<7;m++){
    pos_two[tx][m]=pos[m];
     }
    pos_two[tx][s1]=sx;
    }
    }
    }
 
    number_two=tx;
 
}
  void select(){
 
        int s,sx;
        sx=0;
        for(s=1;s<7;s++){
        int h=0;
        if(hand[s].equals(mode))h=h+1;
        if(pos[s]==0)h=h+1;
        if(h==2)sx=sx+1;
        if(h==2)koma_sel[sx]=s;
        }
 
        number_sel=sx;
  }
 
 
}
 
最終更新:2018年01月19日 16:03