View Full Version : Java projects
moesboy
01-06-2009, 09:36 AM
i have to write a java project for computers class I'm not that good so I'm looking for something easy. any suggestions? (I'm thinking some sort of quiz game)
i made an application in java that deals out hands of poker from a card deck (purely text based, nothing visual). it also told you the odds of receiving that hand. you could then draw another hand from the same deck, and get the odds of that hand given the odds of the first hand, or re shuffle the deck and start over. this was for a sophomore level comp sci class in college.
the default basic java applet is to create a phone book. you have your phone book class, phone entry class, and can enter phoneEntry objects into your phoneBook object. simple properties of phoneEntry are like name, number, address, zip, email, etc. phoneBooks can be implemented as an array of phoneEntries.
dont do that one, as it will be quite obvious to your professor that you snatched it right out of a basic textbook. instead use it as a primitive idea to build something else on.
sonnyfromda02
01-06-2009, 11:19 AM
i made an application in java that deals out hands of poker from a card deck (purely text based, nothing visual). it also told you the odds of receiving that hand. you could then draw another hand from the same deck, and get the odds of that hand given the odds of the first hand, or re shuffle the deck and start over. this was for a sophomore level comp sci class in college.
Hey Todd, let's got to Vegas, oh, and bring along that program as well.
knowing the odds of a single hand in poker is an extremely simple calculation. you are aware of the size of the deck of cards, and which cards you have in your hand, as well as which cards are not in your hand.
if other players are present, you do not know which cards are out of the deck, making the calculation far more complex, and typically leaving much to speculation and chance. what you need to know, with such a tool, is the odds of what hands the other players have. as my application provides no help in such a way, id be quite useless in a casino (that, and the fact that ive played poker maybe 3 times in my entire life).
also, this is illegal, unless youre rain man.
sonnyfromda02
01-06-2009, 12:48 PM
knowing the odds of a single hand in poker is an extremely simple calculation. you are aware of the size of the deck of cards, and which cards you have in your hand, as well as which cards are not in your hand.
if other players are present, you do not know which cards are out of the deck, making the calculation far more complex, and typically leaving much to speculation and chance. what you need to know, with such a tool, is the odds of what hands the other players have. as my application provides no help in such a way, id be quite useless in a casino (that, and the fact that ive played poker maybe 3 times in my entire life).
also, this is illegal, unless youre rain man.
Ok new plan.......I need a rain man.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.