[Thousand-oaks-pm] Blackjack code initial release (0.1)
Paul Jacobs
paul at pauljacobs.net
Wed Dec 22 15:31:33 CST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi everyone. After reading through the CPAN/PAUSE naming convention
guidelines, I realized that it's not trivial to come up with the most
appropriate new package name. Games::Blackjack is taken, and
Games::Cards is taken, and I don't use either, so it's not appropriate
to use package names such as Games::Blackjack::Tournament or
Games::Cards::Blackjack. I may want to convert to using one or both of
those in the future, and I'm not sure how all this information fits
into the system correctly. I'm going to write to the PAUSE people after
the holidays (I've just got too much going on now), and once I have a
good, stable base name I'll update my code to use it as a root for it's
hierarchy. I figure it's a good plan to reschedule the actual contest
for later, I want to get at least a good month of testing/debugging in
before it starts. The plan now is Feb., if things go well.
But in the meantime, I've gone over and done a tiny bit of cleanup on
my stuff (it could still use more), wrote a README, and packaged it up
for local distribution. Keeping in mind that all the package names will
soon change, you can get at it here:
http://codehearted.com/for/thousand-oaks.pm/blackjack_tournament_pkg.tgz
To do the simulation I did in the presentation, d/l that package,
expand it, and change dir into the folder (so your perl path will
include the packages there) and run play.pl. Suggested reading order
for code after that is:
play.pl
deck.pm
blackjack_game.pm
blackjack.pm
player.pm
examplePlayer1.pm
examplePlayer2.pm
dealerPlayer.pm
humanPlayer.pm
..
Enjoy,
- - Paul
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFByee/8PscfQd/jB4RAo6rAJ9OCsj64FFtreZOpNlpZkVbsshzgACbBKY8
Q4qPAHNCZnKTHsXHqshGmDU=
=r7aw
-----END PGP SIGNATURE-----
More information about the Thousand-oaks-pm
mailing list