Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: RFC: Cribbage::Hand

by hv (Parson)
on Mar 31, 2006 at 17:12 UTC ( #540505=note: print w/replies, xml ) Need Help??

in reply to RFC: Cribbage::Hand

The primary purpose of this meditation is to ask if people think there is a need for this on the CPAN.

Need? Probably not, but that's no reason not to release it.

I suspect the majority of people that might come across it are people who'd really rather be writing their own, but there'll be the occasional one that is happy to grab someone else's version so they can concentrate on making the cards look pretty.

It would help the former group, though, if the code was clear, and showed a clear link between the various aspects of hand-scoring and the code that handled each. Most potential users will not care about the speed as long as scoring 4 or 5 hands doesn't involve a noticeable (0.5s or so) delay.


Replies are listed 'Best First'.
Re^2: RFC: Cribbage::Hand
by Limbic~Region (Chancellor) on Mar 31, 2006 at 17:58 UTC
    You have good points. I just find it odd that with everything under the sun, there isn't already one out there. With regards to your point on clarity and explanation - let me take this opportunity now to do so.

    Precalculating Scores

    Calculate Total Score

    I am not sure how fast this is compared to other approaches but I think it is a great start for someone interested in working on a Games::Cards::Cribbage.

    Cheers - L~R

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://540505]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2018-05-22 12:40 GMT
Find Nodes?
    Voting Booth?