BaCon Shell Game

Play with your Puppy.
Post Reply
Message
Author
User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

BaCon Shell Game

#1 Post by vovchik »

Dear Puppians,

Here is a little diversion I programmed in BaCon that simulates the traditional con-man shell game that is played on streets throughout the world. The pea starts out under shell 2 and the shells are shuffled 10 times. Your task is to follow the movement of the shell with the pea. You can vary the speed a bit, since CPUs will process at different speeds. Eventually I will try to fix this, so that the game adjusts automatically to various CPU speeds. I compiled it in Lucid, so it should work in most recent puppies. It uses SOX's play to render sounds. If you don't have SOX installed, you can symlink aplay (from Alsa) to play and it should work.

Here is a screenshot.

The source is in the /usr/local/bsg/src dir.

With kind regards,
vovchik
Attachments
bsg.png
(39.57 KiB) Downloaded 1134 times
bsg-0.1a.pet
(86.65 KiB) Downloaded 313 times

Post Reply