I like ZZamboni's deck better than mine. It looks much more
stylish and compact. However, I am concerned about
sacrificing the readability and I wonder which would load
faster the array or ZZamboni. My guess is yours is faster.
I haven't used the Benchmark tutorial, yet. It could be a
cool test. Thanks ZZamboni! That deserves some xp!
Thanks for the complement Adam. I would like to see your
code or any ideas you have on modifying mine. I try to
write my perl as simply as possible. I wrote the first
couple versions with all the code in the script and the
deck as an array. I discovered that despite the overhead
OOP and hashes were the way to go. This version is about
my third or fourth start from scratch. I am mainly stuck
on creating multiple players dynamically. For example,
You could play 2 players the first game and 4 the next.
I am hoping to get some more feedback or a co-author to
"inspire" and work with me to finish it. Would you like
to help me finish it? If your interested post back or
email me off my webpage. I have never worked with someone on a programming project before.
It would be interesting.
Here are the two big benefits to completing the program I
see for finishing it.
We could make the program client server. Maybe host it on
perlmonks?
We could write a limited AI to statistaclly discover the
best way to play by copying the results to a database or
excel (I have done both).
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.