📄 sure_sign.c
字号:
#include"header.c"
void sure_sign()
{
////////////////////make sure the rightest sign of the array
//此段代码用来确定方块数组中,有1的最右坐标,并把值保存在变量K中
k=-1;
for(j=3;j>=0;j--)
{
for(i=0;i<3;i++)
if(stone_s[type][view][i][j]!=0)
{ k=j;break;}
if(k==j) break;
}
////////////////////make sure the rightest sign of the array
//此段代码用来确定v_win方块数组中,有1的最右坐标,并把值保存在变量K中
if(s_flag==2)
{
v_k=-1;
for(j=3;j>=0;j--)
{
for(i=0;i<3;i++)
if(stone_s[v_type][v_view][i][j]!=0)
{ v_k=j;break;}
if(v_k==j) break;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -