?? eveluation.cpp
字號(hào):
// Eveluation.cpp: implementation of the CEveluation class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Eveluation.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CEveluation::CEveluation()
{
}
CEveluation::~CEveluation()
{
}
int CEveluation::Eveluate(BYTE byBoard[][3])
{
int iCount=0;
int i;
for(i=0;i<3;i++)
if(byBoard[0][i]!=i+1)
iCount++;
for(i=0;i<3;i++)
if(byBoard[2][i]!=7-i)
iCount++;
iCount+=!(byBoard[1][0]==8)+!(byBoard[1][1]==0)+!(byBoard[1][2]==4);
return iCount;
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -