Hi everyone, I'm writing a basic 5 card draw perl poker game for my own amusement/learning experience.
I can get the program to deal out x number of hands, and can hold cards, redeal, shuffle the deck when out of cards, etc. However, I want to make a major leap here, and be able to play the computer. This is where I am stuck. I don't know how to go about having the computer player know which cards to hold in the hand. I assume I would have the rules of poker apply to the current hand, and the highest match (ie - 2 pair, etc) would require holding those cards. and then dealing again. Anyone have any ideas on a way to do this? ===== Anthony Ettinger [EMAIL PROTECTED] http://www.apwebdesign.com Instant Messengers: 1) yahoo im: apwebdesign 2) aol im: apwebdesignxl 3) msn im: [EMAIL PROTECTED] 4) icq im: 659139 __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs