资源简介
从广度优先搜索,深度优先搜索,A*算法多方面算法来解决八数码问题
人工智能的作业
八数码问题
用MFC做的,有界面 很好, 给大家共享下

代码片段和文件信息
// Chess.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “Chess.h“
#include “MainFrm.h“
#include “ChessDoc.h“
#include “ChessView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CChessApp
BEGIN_MESSAGE_MAP(CChessApp CWinApp)
//{{AFX_MSG_MAP(CChessApp)
ON_COMMAND(ID_APP_ABOUT OnAppAbout)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
// Standard file based document commands
ON_COMMAND(ID_FILE_NEW CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN CWinApp::OnFileOpen)
// Standard print setup command
ON_COMMAND(ID_FILE_PRINT_SETUP CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CChessApp construction
CChessApp::CChessApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CChessApp object
CChessApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CChessApp initialization
BOOL CChessApp::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
// Change the registry key under which our settings are stored.
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization.
SetRegistryKey(_T(“Local AppWizard-Generated Applications“));
LoadStdProfileSettings(); // Load standard INI file options (including MRU)
// Register the application‘s document templates. Document templates
// serve as the connection between documents frame windows and views.
CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CChessDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CChessView));
AddDocTemplate(pDocTemplate);
// Parse command line for standard shell commands DDE file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
// The one and only window has been initialized so show and update it.
m_pMainWnd->ShowWindow(SW_SHOWMAXIMIZED);
m_pMainWnd->UpdateWindow();
return TRUE;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2000-12-01 19:18 Chess\
文件 48488 2000-12-06 03:42 Chess\Chess.aps
文件 5172 2000-12-06 05:43 Chess\Chess.clw
文件 4200 2001-12-01 06:11 Chess\Chess.cpp
文件 4913 2000-12-02 22:56 Chess\Chess.dsp
文件 533 2001-12-01 06:12 Chess\Chess.dsw
文件 1345 2001-12-01 06:11 Chess\Chess.h
文件 123904 2000-12-06 05:43 Chess\Chess.ncb
文件 60928 2000-12-06 05:43 Chess\Chess.opt
文件 2234 2000-12-06 05:43 Chess\Chess.plg
文件 17728 2000-12-06 03:42 Chess\Chess.rc
文件 22100 2000-12-06 05:29 Chess\ChessDoc.cpp
文件 2600 2000-12-06 04:41 Chess\ChessDoc.h
文件 11456 2000-12-06 05:41 Chess\ChessView.cpp
文件 2780 2000-12-05 02:32 Chess\ChessView.h
目录 0 2000-12-06 03:47 Chess\Data\
文件 1757 2000-12-05 05:14 Chess\DataType.cpp
文件 1330 2000-12-05 02:20 Chess\DataType.h
文件 75 2000-12-06 04:19 Chess\Data\Data0.dat
文件 48 2000-12-06 03:48 Chess\Data\Data1.dat
文件 47 2000-12-06 04:12 Chess\Data\Data2.dat
文件 47 2000-12-06 04:15 Chess\Data\Data3.dat
文件 47 2000-12-06 04:14 Chess\Data\Data3.txt
文件 47 2000-12-06 04:17 Chess\Data\Data4.dat
文件 19616 2000-12-06 05:42 Chess\EnterView.cpp
文件 4357 2000-12-06 04:51 Chess\EnterView.h
文件 1062 2000-12-01 22:17 Chess\Grid.cpp
文件 1090 2000-12-01 20:29 Chess\Grid.h
文件 3180 2000-12-01 20:26 Chess\MainFrm.cpp
文件 1712 2001-12-01 08:33 Chess\MainFrm.h
文件 4287 2001-12-01 06:11 Chess\ReadMe.txt
............此处省略9个文件信息
相关资源
- 人工智能经典作业,野人与传教士过
- wumpus世界(MFC编写)
- 四子棋智能下棋C语言实现
- LeNet-5神经网络——C源代码
- Python基础教程第3版) 高清PDF
- 基于人工智能的五子棋人机对弈
- 推箱子人工智能算法
- 人工智能小游戏-基于alpha-beta剪枝算法
- 动物识别系统MFC)
- 九宫格程序c++人工智能
- K210使用情况指南以及测试情况
- 人工智能归结反演c++代码
- 人工智能 A算法 九宫格 启发式搜索
- C++实现的人脸识别系统
- 图的邻接矩阵表示,深度优先遍历,
- Othello黑白棋游戏与AI
- 人工智能的贪食蛇
- Alpha-Beta剪枝算法一字棋源码及实验报
- MFC界面 8数码A星算法
- C++实现图的邻接矩阵存储和广度、深
- 8数码难题含代码,实验报告
- 无向图用邻接矩阵的深度优先遍历程
- VC2008 MFC 五子棋 源码 人机对弈 游戏
- 人工智能 A*算法 八数码问题 C++ 报告
- 邮票问题C语言源码
- 人工智能——水壶问题
- 8数码问题的c++代码
- 人工智能之动物识别C语言
- 图的深度优先遍历与广度优先遍历(
- 人工智能,五子棋,人工智能,代码
评论
共有 条评论