俄罗斯方块java(6)

2021-04-05 02:40

俄罗斯方块java

idthGrid;j++)
if(((i==0)&&(j==1))||((i==1)&&(j==1)))
aryDiamonds[i][j]=0;
else
aryDiamonds[i][j]=1;
break;
case 3:
iHeightGrid=2;
iWidthGrid=3;
aryDiamonds=new int[iHeightGrid][iWidthGrid];
for(int i=0;i<iHeightGrid;i++)
for(int j=0;j<iWidthGrid;j++)
if(((i==0)&&(j==0))||((i==0)&&(j==1)))
aryDiamonds[i][j]=0;
else
aryDiamonds[i][j]=1;
break;
}
break;
case 3:
switch(iStatusNo)
{
case 0:
iHeightGrid=3;
iWidthGrid=2;
aryDiamonds=new int[iHeightGrid][iWidthGrid];
for(int i=0;i<iHeightGrid;i++)
for(int j=0;j<iWidthGrid;j++)
if(((i==0)&&(j==0))||((i==2)&&(j==1)))
aryDiamonds[i][j]=0;
else
aryDiamonds[i][j]=1;
break;
case 1:
iHeightGrid=2;
iWidthGrid=3;
aryDiamonds=new int[iHeightGrid][iWidthGrid];
for(int i=0;i<iHeightGrid;i++)
for(int j=0;j<iWidthGrid;j++)
if(((i==0)&&(j==2))||((i==1)&&(j==0)))
aryDiamonds[i][j]=0;
else
aryDiamonds[i][j]=1;
break;
}
break;
case 4:
switch(iStatusNo)
{
case 0:
iHeightGrid=3;
iWidthGrid=2;
aryDiamonds=new int[iHeightGrid][iWidthGrid];
for(int i=0;i<iHeightGrid;i++)
for(int j=0;j<iWidthGrid;j++)
if(((i==0)&&(j==1))||((i==2)&&(j==0)))
aryDiamonds[i][j]=0;
else
aryDiamonds[i][j]=1;
break;
case 1:
iHeightGrid=2;
iWidthGrid=3;
aryDiamonds=new int[iHeightGrid][iWidthGrid];
for(int i=0;i<iHeightGrid;i++)
for(int j=0;j<iWidthGrid;j++)
if(((i==0)&&(j==0))||((i==1)&&(j==2)))
aryDiamonds[i][j]=0;
else
aryDiamonds[i][j]=1;
break;
}
break;
case 5:
iHeightGrid=2;
iWidthGrid=2;
aryDiamonds=new int[iHeightGrid][iWidthGrid];
for(int i=0;i<iHeightGrid;i++)
for(int j=0;j<iWidthGrid;j++)
aryDiamonds[i][j]=1;
break;
case 6:
switch(iStatusNo)
{
case 0:
iHeightGrid=2;
iWidthGrid=3;
aryDiamonds=new int[iHeightGrid][iWidthGrid];
for(int i=0;i<iHeightGrid;i++)
for(int j=0;j<iWidthGrid;j++)
if(((i==1)&&(j==0))||((i==1)&&(j==2)))
aryDiamonds[i][j]=0;
else
aryDiamonds[i][j]=1;
break;
case 1:
iHeightGrid=3;
iWidthGrid=2;
aryDiamonds=new int[iHeightGrid][iWidthGrid];
for(int i=0;i<iHeightGrid;i++)
for(int j=0;j<iWidthGrid;j++)
if(((i==0)&&(j==1))||((i==2)&&(j==1)))
aryDiamonds[i][j]=0;
else
aryDiamonds[i][j]=1;
break;
case 2:
iHeightGrid=2;
iWidthGrid=3;
aryDiamonds=new int[iHeightGrid][iWidthGrid];
for(in
t i=0;i<iHeightGrid;i++)
for(int j=0;j<iWidthGrid;j++)
if(((i==0)&&(j==0))||((i==0)&&(j==2)))
aryDiamonds[


俄罗斯方块java(6).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:2013-2014年北京市昌平区2014年中考一模数学试卷(含答案)

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: