Powered By Blogger

2011年5月28日星期六

Wumpus world---Java Code

This is an artificial intellegence game design. In this game, there is a 4 by 4 square, and in this square, there exists one wumpus, some pits and one gold. The purpose of the game is let the computer controled robot to find the shortest path to find the gold and return to the start point. The game rule is simple, if the computer falls into a pit, it will be punished some pts and also it will be punished if it take any step, such as turn left, turn right, go forward or backward. Also it will be punished by arrowing the wumpus.And if it steps into the wumpu's square, it will lose lots of pts.
The only way to earn the pts is to take the gold.
This code use Djkistra's method to find the shortest path.
---Developed by Eclipse-SDK-3.5.2

Download address:www.dropbox.com

没有评论:

发表评论