- You are the Hunter starts in the dark cave with rooms. Somewhere here lives one or more Wumpuses - terrible monster.
- Your main goal is to kill all Wumpuses and return to home through the caves, underwater, dead city and some other places.
- On the way you will be trapper in danger of two types:
- things which move you from one room to another room (for example, The Bats);
- things that kill you (for example, The Bottomless pits "
- You have only the bow, the limited count of arrows on each level and the device that detects monsters and traps
- Meeting of the Wumpus and the Hunter means dead of the Hunter.
- Meeting with The Bats or similar things is means that you moved from meeting room to another one randomly.
- Meeting with the trap like The Bottomless Pit means dead of the Hunter.
- To leave the level, you should kill all Wumpuses, find the door and open it. At the first level the door is unhidden.
LMB - move to room\n"
RMB - shot into the room\n"
MMB - mark/unmark the room\n";
Game has following dependicies:
- game's gui based on
FLTKlibrary - game's audio output is provided by
audio_outlibrary (wrapper to Bass library)
- download game archive and unpack it to, i.e.,
c:/wump/ - create folder
bininc:/wump/if not presents, or remove `.exe files
Standart installation of game is provided by cmake. Thus to install game using cmake we should install FLTK library by cmake too (since only by this install type we would have all necessary files for cmake).
- download latest
FLTKrelease from fltk`s site - unpack to folder, i.e.
c:/fltk_1.3.4/sources/ - open
fltkfolder in MSVC byFile -> Open -> Folder, then starts auto cache generation - choose
x86-Releaseon thePanel - then
CMake -> Build All - after building was ended - copy
builddir toc:/fltk_1.3.4/(from dir usually `~/CMakeBuilds/{some_hash}/x86-build/) - then
CMake -> Install -> FLTK - after installing was ended - copy
installdir toc:/fltk_1.3.4/(from dir usually `~/CMakeBuilds/{some_hash}/x86-install/)
- download archive from official bass library site
- unpack
mp3-free/bass.dllto thebindirectory of the game build folder (i.e.c:/wump/bin/) - unpack
c/bass.libto the current build folder (usually~/CMakeBuilds/{some_hash}/x86-build/)
- in MSVC, open
c:/wump/byFile -> Open -> Folder
Build starts automatically, but will stop with errors about absent some FLTK`s cmake files:
- choose
x86-Releaseon thePanel - go to
CMake -> Change CMake Settings -> CMakeLists.txt - add to
cmakeCommandArgspath to FLTK build, i.e. "cmakeCommandArgs": "-DFLTK_DIR:PATH="c:/fltk_1.3.4/build/"" - build all with
CMake -> Build All - copy
wump_game.exe,wump_test.exeandc:/wump/source/src/resources/toc:/wump/install
You need to download and install Microsoft Visual C++ 2015 Redistributable Package to be able to run game.
$ cd ~/
$ git clone https://github.com/ans-hub/wumpus_game.git
$ cd wumpus_game
$ mkdir build
$ mkdir bin
Standart installation of game is provided by cmake. Thus to install game using cmake we should install FLTK library first by cmake too (since only by this install type we would have all necessary files for cmake).
$ mkdir ~/libs/fltk
$ cd ~/libs/fltk/
$ svn co http://seriss.com/public/fltk/fltk/branches/branch-1.3/ fltk-1.3
$ mkdir build
$ cd build
$ cmake ../
$ make
$ wget http://us.un4seen.com/files/bass24-linux.zip
$ unzip bass24-linux.zip -d tmp/
$ sudo cp tmp/mp3free/libbass.so /usr/local/lib/
$ sudo chmod a+rx /usr/local/lib/libbass.so
$ sudo ldconfig
$ rm -rf tmp/ bass24-linux.zip $ cd ~/wumpus_game/build
$ cmake ../ -DFLTK_DIR:PATH="~/libs/fltk/build"
$ cp wump_* ../bin
$ cp -r ../src/resoures/ ../bin/
- "Hunt the wumpus", invented by Gregory Yob in 1972 or 1973.
- Original game has 20-rooms labirint since its based on plane projection of regular dodecahedron using Schlegel diagram. In my implementation this is more than 20 rooms in depends of game level.