⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 code.h

📁 优化后A*算法解八数码难题
💻 H
字号:
#ifndef CODE_H
#define CODE_H

#include <iostream>

class Attribute
{
public:
	Attribute();
	void clear();
	char manipulation[25];
	int  deep;
	int  distance;
	int  estimate_value;
	int  code[3][3];
};

class Eightcode
{
public:
	Eightcode();
	void develop();
	void up();
	void down();
	void left();
	void right();
	void get_attribute();
	void rearrage();
	void change_get_value();
	void get_parameter();
	bool compare();
	bool everexist();
	bool canmoveup();
    bool canmovedown();
	bool canmoveleft();
	bool canmoveright();
	void output();
private:
	int orginal[3][3];
	int change[3][3];
	int object[3][3];
	Attribute opentable[50],closetable[50];

};


#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -