資源簡(jiǎn)介
象棋 C++ 源程序象棋 C++ 源程序象棋 C++ 源程序象棋 C++ 源程序象棋 C++ 源程序象棋 C++ 源程序

代碼片段和文件信息
/***************************************************************
??MantisChess.cpp?:?MantisChess?程序入口
??版權(quán)所有(C)?共創(chuàng)軟件聯(lián)盟?CChessUG?項(xiàng)目開(kāi)發(fā)小組成員?陳成濤?
??這一程序是自由軟件,你可以遵照自由軟件基金會(huì)出版的GNU通用公共
??許可證條款來(lái)修改和重新發(fā)布這一程序。或者用許可證的第二版,或者
??(根據(jù)你的選擇)用任何更新的版本。
??發(fā)布這一程序的目的是希望它有用,但沒(méi)有任何擔(dān)保。甚至沒(méi)有適合特
??定目的的隱含的擔(dān)保。更詳細(xì)的情況請(qǐng)參閱GNU通用公共許可證。
??
??你應(yīng)該已經(jīng)和程序一起收到一份GNU通用公共許可證的副本。
??如果還沒(méi)有,寫(xiě)信給:
??The?Free?Software?Foundation,Inc,,675?Mass?Ave,?Cambridge,
??MAO2139,USA
??如果你在使用本軟件時(shí)有什么問(wèn)題或建議,用以下地址可以與我取得聯(lián)
??系:
http://thecct.51.net
http://cosoft.org.com
??或發(fā)Email到:
stove@eyou.com
******************************************************************/
#include?“StdAfx.h“
#include?“resource.h“
#include?“MantisChessDef.h“
#include?“MantisChessDraw.h“
#include?“MantisChessStd.h“
#include?“MantisChessThink.h“
#define?MAX_LOADSTRING?100
//?Global?Variables:
HINSTANCE?hInst; //?current?instance
TCHAR?sztitle[MAX_LOADSTRING]; //?The?title?bar?text
TCHAR?szWindowClass[MAX_LOADSTRING]; //?The?title?bar?text
//?Foward?declarations?of?functions?included?in?this?code?module:
ATOM MyRegisterClass(HINSTANCE?hInstance);
BOOL InitInstance(HINSTANCE?int);
LRESULT?CALLBACK WndProc(HWND?UINT?WPARAM?LPARAM);
LRESULT?CALLBACK About(HWND?UINT?WPARAM?LPARAM);
//----------------------------
void?OnCreate(HWND?hWnd);
void?Reset();
void?ShowRect(HDC?hdcLPRECT?prect);
void?ShowPoint(HDC?hdcPOINT?point);
void?Think(HWND?hWnd);
BOOL?Go(HWND?hWndint?manPOINT?targetpoint);
void?onmousemove(POINT?point);
void?OnLButtonDown(HWND?hWndPOINT?point);
BOOL?FaceToPoint(POINT?&point);
//--------------------------------------
static??POINT?g_pointChessman[32]; //棋子坐標(biāo)
static??int?g_iChessmanMap[11][12]; //棋位狀態(tài)
static??int?g_iSide; //輪到哪放走
static??HCURSOR?g_hCurCantGo; //不可以點(diǎn)擊時(shí)顯示的鼠標(biāo)
static??HCURSOR?g_hCurHand; //可以點(diǎn)擊時(shí)顯示的鼠標(biāo)
static??HCURSOR?g_hCurThinking; //計(jì)算時(shí)顯示的鼠標(biāo)
static? HICON?g_hIconChessman[14]; //棋子的圖像
static? HICON?g_hIconBox; //指示最后一步走法的框
static? HICON?g_hIconselect; //指示選擇棋子的框
static? HDC?g_hdcChessboard; //棋盤的設(shè)備描述表
static? HBITMAP?g_hbmpChessboard; //棋盤的位圖
static? POINT?g_pointBoxFrom; //最后一步的原始位置
static? POINT?g_pointBoxTo; //最后一步的目標(biāo)位置
static? int?g_iChessmanSelect; //選擇的棋子
static? int?g_iComputerSide; //電腦的顏色
static??BOOL?g_bEndGame; //游戲結(jié)束標(biāo)志
//--------------------------------------
int?APIENTRY?WinMain(HINSTANCE?hInstance
?????????????????????HINSTANCE?hPrevInstance
?????????????????????LPSTR?????lpCmdLine
?????????????????????int???????nCmdShow)
{
? //?TODO:?Place?code?here.
MSG?msg;
//?Initialize?global?strings
LoadString(hInstance?IDS_APP_title?sztitle?MAX_LOADSTRING);
LoadString(hInstance?IDC_MANTIS?szWindowClass?MAX_LOADSTRING);
MyRegisterClass(hInstance);
//?Perform?application?initialization:
if?(!InitInstance?(hInstance?nCmdShow))?
{
return?FALSE;
}
//?Main?message?loop:
while?(GetMessage(&msg?NULL?0?0))?
{
TranslateMes
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件?????295005??2010-11-16?09:46??象棋C++源程序\Debug\MantisChess.exe
?????文件?????258128??2010-11-16?09:46??象棋C++源程序\Debug\MantisChess.ilk
?????文件??????25076??2010-11-16?09:46??象棋C++源程序\Debug\MantisChess.obj
?????文件????1948376??2010-11-16?09:46??象棋C++源程序\Debug\MantisChess.pch
?????文件?????418816??2010-11-16?09:46??象棋C++源程序\Debug\MantisChess.pdb
?????文件??????18084??2010-11-16?09:46??象棋C++源程序\Debug\MantisChess.res
?????文件??????12893??2010-11-16?09:46??象棋C++源程序\Debug\MantisChessDraw.obj
?????文件??????11790??2010-11-16?09:46??象棋C++源程序\Debug\MantisChessStd.obj
?????文件??????73897??2010-11-16?09:46??象棋C++源程序\Debug\MantisChessThink.obj
?????文件??????55345??2010-11-16?09:46??象棋C++源程序\Debug\StdAfx.obj
?????文件??????91136??2010-11-16?09:49??象棋C++源程序\Debug\vc60.idb
?????文件?????176128??2010-11-16?09:46??象棋C++源程序\Debug\vc60.pdb
?????文件??????17721??2001-12-04?07:54??象棋C++源程序\MantisChess.cpp
?????文件???????6523??2001-12-03?23:37??象棋C++源程序\MantisChess.dsp
?????文件????????545??2001-12-03?23:16??象棋C++源程序\MantisChess.dsw
?????文件???????1207??2001-12-04?04:46??象棋C++源程序\MantisChess.h
?????文件??????50176??2010-11-16?09:49??象棋C++源程序\MantisChess.ncb
?????文件??????48640??2010-11-16?09:49??象棋C++源程序\MantisChess.opt
?????文件???????2291??2010-11-16?09:46??象棋C++源程序\MantisChess.plg
?????文件???????5235??2001-12-04?07:00??象棋C++源程序\MantisChess.rc
?????文件???????2738??2001-12-04?04:46??象棋C++源程序\MantisChessDef.h
?????文件???????6532??2001-12-04?06:27??象棋C++源程序\MantisChessDraw.cpp
?????文件???????1146??2001-12-04?04:46??象棋C++源程序\MantisChessDraw.h
?????文件???????8761??2001-12-04?06:27??象棋C++源程序\MantisChessStd.cpp
?????文件???????1103??2001-12-04?04:46??象棋C++源程序\MantisChessStd.h
?????文件??????27960??2001-12-04?07:14??象棋C++源程序\MantisChessThink.cpp
?????文件???????1015??2001-12-04?04:46??象棋C++源程序\MantisChessThink.h
?????文件??????86016??2001-12-04?07:54??象棋C++源程序\Release\MantisChess.exe
?????文件????????766??2001-12-03?23:33??象棋C++源程序\res\BLACK_B.ico
?????文件????????766??2001-12-03?23:33??象棋C++源程序\res\BLACK_J.ico
............此處省略31個(gè)文件信息
評(píng)論
共有 條評(píng)論