count = 0;
i = row;
j = col;
while (_root.chess[i][j] == val and i>=0 and j>=0) {
count++;
i--;
j--;
}
if (count>=4) {
return true;
}
i = row+1;
j = col+1;
while (_root.chess[i][j] == val and i<=5 and j<=6) {
count++;
i++;
j++;
}
if (count>=4) {
return true;
}
// 检查右高斜线
count = 0;
i = row;
j = col;
while (_root.chess[i][j] == val and i>=0 and j<=6) {
count++;
i--;
j++;
}
if (count>=4) {
return true;
}
i = row+1;
j = col-1;
while (_root.chess[i][j] == val and i<=5 and j>=0) {
count++;
i++;
j--;
}
if (count>=4) {
return true;
}
}
欢迎您访问www.5ucms.org
上一篇:5ucms插件,Flash MX 编程深层次应用-网络连线游戏(4) 下一篇:5ucms模版,Flash MX 编程深层次应用-网络连线游戏(7) |
|
本站声明:本网站所载文章等内容,目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。如涉及作品内容、版权及其它问题,请在30日内与本网联系(Email:3876307#qq.com),我们将在第一时间删除内容。若原创内容转载请注明出处。 5ucms培训,Flash MX 编程深层次应用-网络连线游戏(8)的关键词: |