资源简介

Given a cave with a number of rooms, represented as a 4x4 square. There is a wumpus, a pit, a pile of gold in the world. The squares containing the wumpus, pit and gold are initialized randomly when the program is started. For example, if the wumpus, the pit, the gold is at (2, 3), (2, 2), and (3, 3), respectively, then the world looks like: You are a warrior and required to kill the wumpus and leave the world with gold. Rules in the Wumpus World are: 1. The neighborhood of a square consists of the four squares: north, south, east, west. 2. You can do the following actions (one at a time): Go Left, Right, Up, and Down, Shoot (killing the wumpus), Grab (getting the gold). 3. You can shoot the wumpus in the neighborhood of wumpus square and grab the gold in gold square. 4. You cannot enter the square containing the pit or the live wumpus, or else you will die. 5. Each square is surrounded by walls with a door. So you cannot see what is in the square before you enter it. But you can smell the stern in the neighborhood of wumpus square and feel the breeze in the neighborhood of pit square. The examples of stern and breeze can be seen in the figure above. 6. You start the adventure at the square (1,1) and leave the world at (4,4).

资源截图

代码片段和文件信息

// stdafx.cpp : source file that includes just the standard includes
// vwumpus.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information

#include “stdafx.h“




 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     105667  2011-12-04 18:45  wumpus world(vc++)\Debug\StdAfx.obj

     文件    1376303  2011-12-04 18:45  wumpus world(vc++)\Debug\StdAfx.sbr

     文件     435200  2011-12-06 12:56  wumpus world(vc++)\Debug\vc60.idb

     文件     438272  2011-12-05 21:59  wumpus world(vc++)\Debug\vc60.pdb

     文件    3400704  2011-12-04 18:45  wumpus world(vc++)\Debug\vwumpus.bsc

     文件     204862  2011-12-06 12:56  wumpus world(vc++)\Debug\vwumpus.exe

     文件     233744  2011-12-06 12:56  wumpus world(vc++)\Debug\vwumpus.ilk

     文件      17869  2011-12-05 19:40  wumpus world(vc++)\Debug\vwumpus.obj

     文件    7202348  2011-12-04 18:45  wumpus world(vc++)\Debug\vwumpus.pch

     文件     476160  2011-12-06 12:56  wumpus world(vc++)\Debug\vwumpus.pdb

     文件      57320  2011-12-06 12:56  wumpus world(vc++)\Debug\vwumpus.res

     文件       6475  2011-12-05 19:40  wumpus world(vc++)\Debug\vwumpus.sbr

     文件      72305  2011-12-05 21:59  wumpus world(vc++)\Debug\vwumpusDlg.obj

     文件      20417  2011-12-05 21:59  wumpus world(vc++)\Debug\vwumpusDlg.sbr

     文件      55908  2011-12-05 21:51  wumpus world(vc++)\Debug\wumpus.obj

     文件     238703  2011-12-05 21:51  wumpus world(vc++)\Debug\wumpus.sbr

     文件       3597  2004-12-19 16:23  wumpus world(vc++)\ReadMe.txt

     文件       5360  2004-12-19 16:36  wumpus world(vc++)\res\blank.bmp

     文件       8010  2011-12-05 22:31  wumpus world(vc++)\res\deadwumpus.bmp

     文件       8010  2011-12-05 22:21  wumpus world(vc++)\res\gold.bmp

     文件       8010  2011-12-05 22:24  wumpus world(vc++)\res\hero.bmp

     文件       8010  2011-12-05 22:22  wumpus world(vc++)\res\pit.bmp

    ..A.SH.     19968  2004-12-20 18:26  wumpus world(vc++)\res\Thumbs.db

     文件       9662  2004-12-20 18:24  wumpus world(vc++)\res\vwumpus.ico

     文件        399  2004-12-19 16:23  wumpus world(vc++)\res\vwumpus.rc2

     文件       8010  2011-12-05 22:25  wumpus world(vc++)\res\wumpus.bmp

     文件       3393  2011-12-05 21:51  wumpus world(vc++)\resource.h

     文件        209  2004-12-19 16:23  wumpus world(vc++)\StdAfx.cpp

     文件       1054  2004-12-19 16:23  wumpus world(vc++)\StdAfx.h

     文件      77908  2011-12-06 18:28  wumpus world(vc++)\vwumpus.aps

............此处省略21个文件信息

评论

共有 条评论