SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

"Das mit dem Affen"

This is a one-night hack. It's a puzzle type game for X11. I played it on another hardware platform (it was made of several pieces of wood) and ported it to Unix/X11.

How to play it

After you have started the game (by simply typing "./affenspiel", no need to install anything), you will immediately see what to do: Shift the puzzle pieces around so that the monkey becomes complete, that means, move the big piece through the other pieces to the bottom of the playfield, so that the monkey picture gets complete.

To move one piece, just click with the mouse on it. If there is only one direction in which the piece can be moved, it will do so. If there are several possible directions, click near the border of the desired direction. Just try it out!

I think it is not that easy, but it is definitely solvable.

There are a few functions mapped on several keys. They are not needed to play this little game, but maybe you find them useful:

        n,N     :       Restart the game. This arranges the pieces
                        to the starting position.

        s,S     :       Save the actual state of the game. It will
                        be saved to a default file under "/tmp" or
                        to the default file that you can specify in
                        the Makefile or to a file that you have
                        given as a command line argument, e.g. when
                        started as "./affenspiel monkey3".

        l,L     :       Restore a previously saved game. This will
                        try to load an old game state from the same
                        file as described under "s,S". (That means,
                        that you can only save one game state while
                        playing a game. Use the "mv" or "cp" to go
                        around this! =;-)

        q,Q     :       Quit the game.

The game should run as fine under a color X11 server as under Black&White.

If there are any problems, just take the source file and hack it! ;-)

To build your own version (probably under other UNIX-like operation systems than Linux, for example SUN or HP-UX), just type "make" and it should be recompiled.

If want to write to the author, write to: aeglos@valinor.owl.de

                              Snail Mail:   Holger Schemel
                                            Sennehof 28
                                            33659 Bielefeld
                                            GERMANY

And now, have fun!

Holger


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.