The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

This topic is READ ONLY
Bennjamin (27) [Avatar] Offline
I'm Trying to make a Python Cribbage game. all i can figure out so far is the deck. can somebody please help me???
warren.sande (211) [Avatar] Offline
Re: PyCribbage
That would be a fun project, but very challenging. I play Cribbage myself, but I wouldn't know how to write an algorithm for how to figure out what to keep and what to put in the crib, or what cards to play when pegging. Even counting up the score at the end is fairly complicated.

The book has an example of a card game (Crazy Eights), which is a game where the rules are pretty simple. If you decide to pursue the Cribbage game, you could look at that for some examples of creating and managing hands, etc. But the actual cribbage rules and especially the strategy would be quite complicated.

Sorry I can't be more help. If you decide to tackle it, I wish you luck.

Warren Sande
Bennjamin (27) [Avatar] Offline
Re: PyCribbage
I've also thought of a cool idea called cMail. It's kind of like a private email server for a single computer. You just click your name, and create your account, and then the program saves your information in a pickle file. You can send "Emails" to your family members and they'll see it the next time they log in!