Index | Recent Threads | Unanswered Threads | Who's Active | Guidelines | Search |
![]() |
World Community Grid Forums
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
No member browsing this thread |
Thread Status: Active Total posts in this thread: 628
|
![]() |
Author |
|
keithhenry
Ace Cruncher Senile old farts of the world ....uh.....uh..... nevermind Joined: Nov 18, 2004 Post Count: 18665 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Writing a program to play Blackjack in C is driving me off the wall.. I'm really not good at this stuff. Most folks aren't. You have to think very logically and in very great detail. It's requires a rather particular type of madness to succeed at. Use a multivalue two dimensional array for the card deck. One value determines which card value to display, the other the point value. Use a random value function to set the deck. The index for the array values in the position in the deck. When card are dealt to the player(s), their hand is just the sum of the values though the dual value of the ace is a bit of extra handling. Sort out all the steps in "English" aka psuedocode and when you have all the details laid out, then you just have to translate it into the C syntax. |
||
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Writing a program to play Blackjack in C is driving me off the wall.. I'm really not good at this stuff. Most folks aren't. You have to think very logically and in very great detail. It's requires a rather particular type of madness to succeed at. Use a multivalue two dimensional array for the card deck. One value determines which card value to display, the other the point value. Use a random value function to set the deck. The index for the array values in the position in the deck. When card are dealt to the player(s), their hand is just the sum of the values though the dual value of the ace is a bit of extra handling. Sort out all the steps in "English" aka psuedocode and when you have all the details laid out, then you just have to translate it into the C syntax. I FINISHED!! After 20 hours.. (yes I know I'm slow, not good at this stuff). On another note.. UC Berkeley was hacked. They lose 97,000 Social Security numbers + other stuff. Berkeley made a site addressing this: http://datatheft.berkeley.edu/news.shtml |
||
|
brown chris
Master Cruncher California - USA Joined: Nov 18, 2004 Post Count: 2423 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Writing a program to play Blackjack in C is driving me off the wall.. I'm really not good at this stuff. Most folks aren't. You have to think very logically and in very great detail. It's requires a rather particular type of madness to succeed at. Use a multivalue two dimensional array for the card deck. One value determines which card value to display, the other the point value. Use a random value function to set the deck. The index for the array values in the position in the deck. When card are dealt to the player(s), their hand is just the sum of the values though the dual value of the ace is a bit of extra handling. Sort out all the steps in "English" aka psuedocode and when you have all the details laid out, then you just have to translate it into the C syntax. I FINISHED!! After 20 hours.. (yes I know I'm slow, not good at this stuff). On another note.. UC Berkeley was hacked. They lose 97,000 Social Security numbers + other stuff. Berkeley made a site addressing this: http://datatheft.berkeley.edu/news.shtml I'm a programmer and I hated programming in C. C++ was even worse because they actually tried to pass that junk off as object oriented programing. I usually program in assembly language (for nice tight procedures) and pascal because it's English. UC Berkeley needs to have their IT staff fired. That whole mess was their fault. I hope they aren't this country's future computer scientists! It's time to turn off IPv4 and turn on IPv6. At least it can help stupid people not do stupid things.
BIG BANG THEORY: In the beginning there was nothing... which exploded
|
||
|
keithhenry
Ace Cruncher Senile old farts of the world ....uh.....uh..... nevermind Joined: Nov 18, 2004 Post Count: 18665 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Here's the latest installment of the graphics:
----------------------------------------tinyurl.com/dn7klb myonlineteam.org/images/smilies/ear.gif |
||
|
keithhenry
Ace Cruncher Senile old farts of the world ....uh.....uh..... nevermind Joined: Nov 18, 2004 Post Count: 18665 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Writing a program to play Blackjack in C is driving me off the wall.. I'm really not good at this stuff. Most folks aren't. You have to think very logically and in very great detail. It's requires a rather particular type of madness to succeed at. Use a multivalue two dimensional array for the card deck. One value determines which card value to display, the other the point value. Use a random value function to set the deck. The index for the array values in the position in the deck. When card are dealt to the player(s), their hand is just the sum of the values though the dual value of the ace is a bit of extra handling. Sort out all the steps in "English" aka psuedocode and when you have all the details laid out, then you just have to translate it into the C syntax. I FINISHED!! After 20 hours.. (yes I know I'm slow, not good at this stuff). On another note.. UC Berkeley was hacked. They lose 97,000 Social Security numbers + other stuff. Berkeley made a site addressing this: http://datatheft.berkeley.edu/news.shtml Sorry Blizzie, didn't realize you were that far along. Glad you got it done. As for the security breach, those are usually due to incompetence or stupidity. Reading the page Berkeley set up, I have to shake my head. Talk about spin! The breach went on for a good six months before they "caught" it? NO! The hackers took a 2x4 up side their heads to get their attention. As for the bit about "many insurance carriers" using Social Security numbers for ids, I thought all the intelliegent ones dropped that years ago. Clearly Berkeley is trying to pass off their stupidity for using them by claiming others still do that too. What really caught my eye was the absence of any mention of providing free credit monitoring to the victims for at least the next year. |
||
|
darth_vader
Veteran Cruncher A galaxy far, far away... Joined: Jul 13, 2005 Post Count: 514 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Writing a program to play Blackjack in C is driving me off the wall.. I'm really not good at this stuff. Most folks aren't. You have to think very logically and in very great detail. It's requires a rather particular type of madness to succeed at. Use a multivalue two dimensional array for the card deck. One value determines which card value to display, the other the point value. Use a random value function to set the deck. The index for the array values in the position in the deck. When card are dealt to the player(s), their hand is just the sum of the values though the dual value of the ace is a bit of extra handling. Sort out all the steps in "English" aka psuedocode and when you have all the details laid out, then you just have to translate it into the C syntax. I FINISHED!! After 20 hours.. (yes I know I'm slow, not good at this stuff). On another note.. UC Berkeley was hacked. They lose 97,000 Social Security numbers + other stuff. Berkeley made a site addressing this: http://datatheft.berkeley.edu/news.shtml I'm a programmer and I hated programming in C. C++ was even worse because they actually tried to pass that junk off as object oriented programing. I usually program in assembly language (for nice tight procedures) and pascal because it's English. UC Berkeley needs to have their IT staff fired. That whole mess was their fault. I hope they aren't this country's future computer scientists! It's time to turn off IPv4 and turn on IPv6. At least it can help stupid people not do stupid things. I've been programming for 37 years now and I never particularly liked C. It has often been called the "language that grades itself". Using C syntax, C++ would then be "D", also a language that grades itself. The IT staff at UC Berkeley are morons. They should know better than to have sensitive data on a public network. I see nothing has changed since I left Berkeley. The place was run by idiots back then as well. - D |
||
|
keithhenry
Ace Cruncher Senile old farts of the world ....uh.....uh..... nevermind Joined: Nov 18, 2004 Post Count: 18665 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
MyOnlineTeam Daily Statistics for 05/09 - All Members:
----------------------------------------Team rank movement report =========================
Points milestones report ======================== RT reached 12,000,000 points ![]() Runtime milestones report ========================= No runtime milestones found. ![]() Results returned milestones report ================================== Blueprint returned their 4,000th result ![]() Airwolf_Liu returned their 2,100th result ![]() New members report ================== No new members found. ![]() Retired members report ====================== No new retired members found. ![]() For the week as a team: Statistics Total Run Time Points Results Team Records: Results Returned: 12/19/2007 2,522 Points: 05/06/2009 518,871 Runtime: 01/25/2006 1:123:00:53:34 Good crunching folks!!!! |
||
|
keithhenry
Ace Cruncher Senile old farts of the world ....uh.....uh..... nevermind Joined: Nov 18, 2004 Post Count: 18665 Status: Offline Project Badges: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
MyOnlineTeam Daily Statistics for 05/09 - Active Members
----------------------------------------Active team members report ==========================
Note: Active members are those who earned points in the prior 30 days. Top Twenty active members returning points today: 01: esoteric17 - 79,811 points 02: marysduby - 65,047 points 03: RT - 49,970 points 04: Dataman - 43,135 points 05: Coingames - 33,495 points 06: Mushball - 24,372 points 07: brown chris - 22,175 points 08: keithhenry - 18,982 points 09: Dave Bell - 18,276 points 10: Dresser - 16,937 points 11: Blueprint - 15,287 points 12: parmesian - 12,262 points 13: Vuj - 11,405 points 14: The Aspens - 10,536 points 15: sulcata - 9,093 points 16: Esteban69 - 8,372 points 17: Bravehart - 8,072 points 18: Blizzie - 7,546 points 19: frans6nl - 6,287 points 20: Tomwp - 4,647 points Total points returned today: 505,062 Active members returning points today: 46 Average points per member active today: 10,979.6087 |
||
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Writing a program to play Blackjack in C is driving me off the wall.. I'm really not good at this stuff. Most folks aren't. You have to think very logically and in very great detail. It's requires a rather particular type of madness to succeed at. Use a multivalue two dimensional array for the card deck. One value determines which card value to display, the other the point value. Use a random value function to set the deck. The index for the array values in the position in the deck. When card are dealt to the player(s), their hand is just the sum of the values though the dual value of the ace is a bit of extra handling. Sort out all the steps in "English" aka psuedocode and when you have all the details laid out, then you just have to translate it into the C syntax. I FINISHED!! After 20 hours.. (yes I know I'm slow, not good at this stuff). On another note.. UC Berkeley was hacked. They lose 97,000 Social Security numbers + other stuff. Berkeley made a site addressing this: http://datatheft.berkeley.edu/news.shtml I'm a programmer and I hated programming in C. C++ was even worse because they actually tried to pass that junk off as object oriented programing. I usually program in assembly language (for nice tight procedures) and pascal because it's English. UC Berkeley needs to have their IT staff fired. That whole mess was their fault. I hope they aren't this country's future computer scientists! It's time to turn off IPv4 and turn on IPv6. At least it can help stupid people not do stupid things. I've been programming for 37 years now and I never particularly liked C. It has often been called the "language that grades itself". Using C syntax, C++ would then be "D", also a language that grades itself. The IT staff at UC Berkeley are morons. They should know better than to have sensitive data on a public network. I see nothing has changed since I left Berkeley. The place was run by idiots back then as well. - D Can someone explain user defined header files? I have all my functions and everything in lab4.c I'm supposed to submit three files -- lab4.c , deck.c , deck.h What I did was only have my main() in lab4.c and included deck.h. I put all my declarations and functions in deck.h. I don't know what deck.c is supposed to contain? If anyone has AIM, my AIM is under this post. By the way, it's due at midnight.. ![]() [Edit 1 times, last edit by Former Member at May 10, 2009 1:18:24 AM] |
||
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
.............CONGRATULATIONS RT ON REACHING 12,000,000 MOT POINTS !!!............. |
||
|
|
![]() |