资源简介
C语言数独游戏源代码+注释,公司内部写的游戏,通过测试。
代码片段和文件信息
#include “Shudu.h“
//******************************************************************************************
static T_BOOL VSHUDUGenerateShudu(T_U32 uLevel);
static T_BOOL VSHUDUJudge(T_U32 uRow T_U32 uCol);
static T_BOOL VSHUDUXJudge(T_U32 uRow T_U32 uCol);
static T_BOOL VSHUDUYJudge(T_U32 uRow T_U32 uCol);
static T_BOOL VSHUDURectJudge(T_U32 uRow T_U32 uCol);
static T_BOOL VSHUDURandomEmpty(T_U32 uLevel);
static T_BOOL VSHUDUValid(T_U32 uRow T_U32 uCol);
static T_VOID VSHUDULoadResource();
static T_BOOL VSHUDUIsOriArray(T_U32 uRow T_U32 uCol);
static T_VOID VSHUDUDISPNUM(T_U32 uRow T_U32 uCol T_U32 uPicNum);
static T_BOOL VSHUDUFOCUSBUTTON(T_U32 uBtnNum);
static T_BOOL VSHUDUFOCUSBUTTONSEL(T_U32 uBtnNum);
static T_U32 VSHUDUGetWhichGrid(T_POINT pts);
static T_BOOL VSHUDUChoseIndex(T_POS x T_POS y);
static T_U32 VSHUDUClickNum(T_POINT pt);
static T_VOID VSHUDUFreeResource();
static T_BOOL VSHUDUCheckBtn();
static T_BOOL VSHUDUAutoCheck();
static T_VOID VSHUDUInitData();
static T_BOOL VSHUDUInitGenerateShudu(T_U32 uLevel);
static T_VOID VSHUDUNextGame();
static T_VOID VSHUDUGetGradeColor(T_U32 uColor);
static T_U32 VSHUDUGetMouse(T_VMouse ps);
static T_VOID VSHUDUKeyInput(T_U32 uKeyNum);
static T_VOID VSHUDUKeyInputSpace(T_U32 uKeyNum);
//******************************************************************************************
static T_VSD_PARAM* g_pSDParam = AK_NULL;
static T_U32 uCountEmptyNum = 0;
static T_TIMER shudu_timer = ERROR_TIMER;
static T_U32 play_spend_time = 0;
static T_RECT play_current_time = {608 41 120 25};
static T_U32 g_Array[9][9];
static T_U32 g_IsOriArray[9][9];
static T_U32 g_EmptyArray[9][9];
static T_U32 g_UserArray[9][9];
static T_U32 g_UserErrArray[9][9];
static T_RECT rtButton[4] = {{5938814648} {59315914648} {59323314648} {59330514648}};
static T_RECT rtButtonsel[4] = {{5938814648} {59315914648} {59323314648} {59330514648}};
//数独区域大小
static T_RECT rtPicBk = {11144395395};
//刷新数独区域大小修改圆环与边缘的关系,上下边界已扩大
static T_RECT rtPicBkFresh = {510515480};
//界面大小
static T_RECT rtMainBk = {00800480};
//对话框大小
static T_RECT rtDialogue = {60037616224};
static T_RECT rtCirque[11] = {{00120120} {75141623} {91351623} {94631623} {77841623} {52911623}
{27831623} {13651623} {12361623} {30151623} {5281723}};
//圆环上单击所在点的正方形区域
static T_RECT rtCircle = {39394242};
//显示等级状态
static T_RECT rtPerRectPoint[9][9] = {
{{114474242} {157474242} {200474242} {245474242} {288474242} {331474242} {376474242} {419474242} {462474242}}
{{114904242} {157904242} {200904242} {245904242} {
- 上一篇:MFC下实现SOAP服务端和SOAP客户端
- 下一篇:正弦波产生C语言源程序代码
评论
共有 条评论