#include typedef char tavolo_tipo[50][50]; tavolo_tipo tavolo; int h,w; void ric_punto(int i,int j) { tavolo[i][j]='*'; if ((tavolo[i+1][j]=='X') && (i=0)) ric_punto(i-1,j); if ((tavolo[i][j+1]=='X') && (j=h)) { j2++; if ((j2>=w) || (i2<0)) break; if (nuovo_dado(&i2,j2)) break; i2--; while((i2>0) && (tavolo[i2-1][j2]!='.')) i2--; } } return ris; } int main() { FILE *f; int ris[7]; int conta=1,j,i; f=fopen("dice.in","r"); fscanf(f,"%d %d\n",&w,&h); while (w!=0) { for (i=1;i<=6;i++) ris[i]=0; for(i=0;i