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

📄 bamigong.cpp

📁 ai 自动排序 把数字0-8顺序打乱,可自动排序好
💻 CPP
字号:
// bamigong.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "conio.h"
#include"Eightpuzz.h" 

int main(int argc, char* argv[])
{
  char Choice=0; 
  cout << "Choose Search Method...\n" 
  << " [1] Blind Breadth First Search\n" 
  << " [2] Blind Depth First Search\n" 
  << " [3] A*(Tiles in the wrong position)\n" 
  << " [4] A*(Manhattan Distance)\n" << endl; 
  cin >> Choice; 
  switch(Choice) { 
    case '1': 
      // call Blind Breadth First Search 
      GeneralSearch(BREADTH_FIRST, NOT_USED); 
      break; 
    case '2': 
      // call Blind Depth First Search 
      GeneralSearch(DEPTH_FIRST, NOT_USED); 
      break; 
    case '3': 
      // call A* with wrong tiles heuristic 
      GeneralSearch(DEPTH_FIRST, WRONG_TILES); 
      break; 
    case '4': 
      // call A* with manhatten heuristic 
      GeneralSearch(DEPTH_FIRST, MANHATTAN_DISTANCE); 
      break; 
  } 
  getch();
  return 0; 
}

⌨️ 快捷键说明

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