Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Math Topics » alt.algebra.help.independent

Topic: A little help on a card game is needed
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Marcius

Posts: 1
Registered: 11/18/09
A little help on a card game is needed
Posted: Nov 18, 2009 5:10 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi everybody,
First of all, I wanna say that I'm not a mathematician, just have basic math knowledge, so please take that into account when answering. I'm programming a card game, here is a short version of rules, to make things easier: 3 players (one user and two computer players), the game itself contains 10 contracts. Every player has to play 10 of those contracts, so it's 30 in all. Every player gets 10 cards each round, and one player picks a contract to play. Next round it will be his left partner and so on. Now, I came to the part of my project, where I need to make computer "think", and I don't know how to make it to choose a contract. I'm thinking about developing some sort of a formula to determine, what contract would be the best to play for a computer. One of those contracts is called "Tricks", which means you have to avoid taking tricks, because for each trick you get negative points. Let's take two examples: one time I get dealt 7c 7h 7s 7d 8c 8h 8s 8d 9c 9h, next time - 7c 8c 9c 10c Jc Qc Kc Ac 7s and 8s. What I tried to do at first, was assign specific numbers to cards, for instance 7 is worth 1 point, 8 - 2 points etc. But in this case, everything breaks down, because those two combinations is equally worthy, because with either - I won't take any tricks..but the sum of them (using my way to calculate it) is quite different.
I'm sorry I made such a big post, I'm just brainstorming here right now..and still I think I missed something. So if there is any uncertainty - don't hesitate to ask, I will give out more info on this. I'd appreciate any help, any thoughts, any pointers ect. (sorry for my English, it's not my first language)



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.