Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^6: Generating all 5-card hands

by thor (Priest)
on May 18, 2005 at 18:26 UTC ( #458371=note: print w/replies, xml ) Need Help??


in reply to Re^5: Generating all 5-card hands
in thread Generating all 5-card hands

I'm attempting to prove that all hands that have a five have at least two points. That's why suit doesn't matter. Suppose that I had a hand with a 5 whose only points were a flush. Now, change the suit of one of the cards. Blamo! No more points. I maintain that such a hand does not exist. I have written the program that I intended to write (I'll try to post it once I've cleaned it up a bit), and when considering the cards without considering their suit, the minimum score was two points. You're right about your bullet points though...and we've tried to use them in a more elegant "classical" proof. :)

thor

Feel the white light, the light within
Be your own disciple, fan the sparks of will
For all of us waiting, your kingdom will come

Replies are listed 'Best First'.
Re^7: Generating all 5-card hands
by Limbic~Region (Chancellor) on May 18, 2005 at 20:37 UTC
    thor,
    I am not disputing that it can be done by reducing the problem set. I was arguing that you seemed to not want to do that in your original post. Now that I have gotten out of the 3 hour long meeting it took about 3 seconds to generat a candidate list and about 1 minute to eleminate the candidates. Indeed, every hand in cribbage with a 5 has at least 2 points. See Re^7: Generating all 5-card hands for details.

    Cheers - L~R

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://458371]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2019-06-18 20:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (82 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!