Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads SourceCode Mathimatics-Numerical algorithms AI-NN-PR
  • Category : AI-NN-PR
  • Tags :
  • Update : 2012-11-26
  • Size : 107kb
  • Downloaded :0次
  • Author :徐****
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Download1 Download2
Don't use download software fo downloading.
If download fail,Try it again for free.
Introduction - If you have any usage issues, please Google them yourself
用有限状态机实现的迷宫求解。 和大部分的迷宫程序相同,迷宫的解决方法是 递归或者是用堆栈来模拟递归,这个程序也不例外。但是我们知道普通的迷宫求解程序通常是用一种递归的方法来实现的。程序从一开始运行就不断的进行递归,直到找到迷宫的出口。但是这对一个演示程序来说是不行的,我们需要演示一个迷宫行走者在迷宫中的行走过程。 因此我们用另外的方式来实现,我们首先要需要一个状态机来记录当前行走者的状态,比如说他是处在行走还是寻找一个新的可以到达的地方的状态,因此我使用了一个有限状态机来模拟搜索者的状态的,我们只要记住行走者的状态就可以了。我们在game loop的每一次到来时刻让行走者按照给定的状态行动。根据行动的结果可以转化状态机的状态。同时也可以在任何你喜欢的时候暂停行走者的行动(在game loop里设置一个标记就可以了。)
Packet file list
(Preview for download)
迷宫\迷宫\MazeMap.txt
....\....\....Walker\MazeWalker\Main.cpp
....\....\..........\..........\Maze.cpp
....\....\..........\..........\Maze.h
....\....\..........\..........\MazeMap.txt
....\....\..........\..........\MazeWalker.dsp
....\....\..........\..........\MazeWalker.dsw
....\....\..........\..........\MazeWalker.ncb
....\....\..........\..........\OpenGLCom.cpp
....\....\..........\..........\OpenGLCom.h
....\....\..........\..........\RESOUCE.rc
....\....\..........\..........\resource.h
....\....\..........\..........\Stone.bmp
....\....\MazeWalker.exe
....\....\MazeWalker.rar
....\....\Stone.bmp
....\....\用有限状态机实现的迷宫求解.txt
....\....\MazeWalker\MazeWalker
....\....\MazeWalker
....\迷宫
迷宫
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.