Page 1 of 1

BaCon Shell Game

Posted: Sat 16 Jun 2012, 07:53
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