Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go ยป
No member browsing this thread
Thread Status: Active
Total posts in this thread: 628
Posts: 628   Pages: 63   [ Previous Page | 12 13 14 15 16 17 18 19 20 21 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 58437 times and has 627 replies Next Thread
keithhenry
Ace Cruncher
Senile old farts of the world ....uh.....uh..... nevermind
Joined: Nov 18, 2004
Post Count: 18665
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: smilesmile Join "MyOnlineTeam" Today - Chapter 35 smilesmile

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.
----------------------------------------
Join/Website/IMODB



[May 9, 2009 10:51:42 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: smilesmile Join "MyOnlineTeam" Today - Chapter 35 smilesmile

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
[May 9, 2009 11:56:50 PM]   Link   Report threatening or abusive post: please login first  Go to top 
brown chris
Master Cruncher
California - USA
Joined: Nov 18, 2004
Post Count: 2423
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: smilesmile Join "MyOnlineTeam" Today - Chapter 35 smilesmile

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
[May 10, 2009 12:42:57 AM]   Link   Report threatening or abusive post: please login first  Go to top 
keithhenry
Ace Cruncher
Senile old farts of the world ....uh.....uh..... nevermind
Joined: Nov 18, 2004
Post Count: 18665
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: smilesmile Join "MyOnlineTeam" Today - Chapter 35 smilesmile

Here's the latest installment of the graphics:

tinyurl.com/dn7klb myonlineteam.org/images/smilies/ear.gif            
tinyurl.com/dnl9wt myonlineteam.org/images/smilies/easter.gif
tinyurl.com/dnydlo myonlineteam.org/images/smilies/easteregg.gif
tinyurl.com/dh7up3 myonlineteam.org/images/smilies/easteregg1.gif
tinyurl.com/c53uqj myonlineteam.org/images/smilies/easteregg2.gif
tinyurl.com/cxosjc myonlineteam.org/images/smilies/easteregg3.gif
tinyurl.com/dngf4o myonlineteam.org/images/smilies/easteregg4.gif
tinyurl.com/ddco6r myonlineteam.org/images/smilies/easteregg5.gif
tinyurl.com/cks7yr myonlineteam.org/images/smilies/easteregg6.gif
tinyurl.com/cqzvmz myonlineteam.org/images/smilies/eatturkey.gif
tinyurl.com/ctax2a myonlineteam.org/images/smilies/eek.gif
tinyurl.com/c6la95 myonlineteam.org/images/smilies/eeyore.gif
tinyurl.com/chrjnt myonlineteam.org/images/smilies/egotist.gif
tinyurl.com/cq2ahs myonlineteam.org/images/smilies/elephant.gif
tinyurl.com/cqlufn myonlineteam.org/images/smilies/elephant1.gif
tinyurl.com/cxaykk myonlineteam.org/images/smilies/elephant2.gif
tinyurl.com/cfzc9t myonlineteam.org/images/smilies/elephant3.gif
tinyurl.com/ck99mn myonlineteam.org/images/smilies/elfarcher.gif
tinyurl.com/cdyd3l myonlineteam.org/images/smilies/elvis.gif
tinyurl.com/chq7je myonlineteam.org/images/smilies/emailforyou.gif
tinyurl.com/dapmfa myonlineteam.org/images/smilies/embarasscry.gif
tinyurl.com/cclw4e myonlineteam.org/images/smilies/embarrass.gif
tinyurl.com/cq7maz myonlineteam.org/images/smilies/engaurde.gif
tinyurl.com/c34d2t myonlineteam.org/images/smilies/etlaugh.gif
tinyurl.com/dybopl myonlineteam.org/images/smilies/evileye.gif
tinyurl.com/c96hro myonlineteam.org/images/smilies/ewok.gif
tinyurl.com/d7nxe6 myonlineteam.org/images/smilies/exercycle.gif
tinyurl.com/c7ydr3 myonlineteam.org/images/smilies/eyebrows.gif
tinyurl.com/c9b2p4 myonlineteam.org/images/smilies/faint.gif
tinyurl.com/cv2f2y myonlineteam.org/images/smilies/faintingangel.gif
tinyurl.com/dlrkew myonlineteam.org/images/smilies/fairy.gif
tinyurl.com/cjvtt7 myonlineteam.org/images/smilies/fairy1.gif
tinyurl.com/csm47m myonlineteam.org/images/smilies/fairy2.gif
tinyurl.com/chth4g myonlineteam.org/images/smilies/fairy3.gif
tinyurl.com/c36e8k myonlineteam.org/images/smilies/fairy4.gif
tinyurl.com/de7dlr myonlineteam.org/images/smilies/fairy5.gif
tinyurl.com/dk2nod myonlineteam.org/images/smilies/fairy6.gif
tinyurl.com/cxoo9q myonlineteam.org/images/smilies/fan.gif
tinyurl.com/cab4h9 myonlineteam.org/images/smilies/fan1.gif
tinyurl.com/cm5dya myonlineteam.org/images/smilies/fan2.gif
tinyurl.com/d5tvzv myonlineteam.org/images/smilies/fan3.gif
tinyurl.com/cth3ke myonlineteam.org/images/smilies/feedbirds.gif
tinyurl.com/d56dsu myonlineteam.org/images/smilies/fencing.gif
tinyurl.com/ckuhks myonlineteam.org/images/smilies/fighterjet.gif
tinyurl.com/dxvf22 myonlineteam.org/images/smilies/fire.gif
tinyurl.com/cg3dul myonlineteam.org/images/smilies/fireball.gif
tinyurl.com/d798m4 myonlineteam.org/images/smilies/firefox1.gif
tinyurl.com/cjeoqw myonlineteam.org/images/smilies/firefox2.gif
tinyurl.com/d5uboc myonlineteam.org/images/smilies/firefox3.gif
tinyurl.com/djxzdx myonlineteam.org/images/smilies/firefox4.gif
tinyurl.com/c57sya myonlineteam.org/images/smilies/firefox5.gif
tinyurl.com/deo7en myonlineteam.org/images/smilies/firefox6.gif
tinyurl.com/dnmljt myonlineteam.org/images/smilies/firefox7.gif
tinyurl.com/dder8k myonlineteam.org/images/smilies/firefox8.gif
tinyurl.com/djqhvl myonlineteam.org/images/smilies/firefox9.gif
tinyurl.com/c93vmz myonlineteam.org/images/smilies/firefox10.gif
tinyurl.com/clxych myonlineteam.org/images/smilies/firefox11.gif
tinyurl.com/dy5273 myonlineteam.org/images/smilies/firefox12.gif
tinyurl.com/cboxe2 myonlineteam.org/images/smilies/firefox13.gif
tinyurl.com/cbxa2s myonlineteam.org/images/smilies/firefox14.gif
tinyurl.com/cjjt2e myonlineteam.org/images/smilies/firefox15.gif
tinyurl.com/dezl4p myonlineteam.org/images/smilies/firefox16.gif
tinyurl.com/dhr7p6 myonlineteam.org/images/smilies/firefox17.gif
tinyurl.com/ded5jv myonlineteam.org/images/smilies/firefox18.gif
tinyurl.com/cv6cr7 myonlineteam.org/images/smilies/firefox19.gif
tinyurl.com/cumw6p myonlineteam.org/images/smilies/firefox20.gif
tinyurl.com/cdwap3 myonlineteam.org/images/smilies/firefox21.gif
tinyurl.com/c5vtlt myonlineteam.org/images/smilies/firefox22.gif
tinyurl.com/dekuc6 myonlineteam.org/images/smilies/firefox23.gif
tinyurl.com/dgsz4g myonlineteam.org/images/smilies/firefox24.gif
tinyurl.com/cmpvv6 myonlineteam.org/images/smilies/firefox25.gif
tinyurl.com/d6dt3v myonlineteam.org/images/smilies/firefox26.gif
tinyurl.com/cw6tks myonlineteam.org/images/smilies/firefox27.gif
tinyurl.com/d46xrd myonlineteam.org/images/smilies/firestarter.gif
tinyurl.com/cbqw77 myonlineteam.org/images/smilies/fireworks.gif
tinyurl.com/chuv5x myonlineteam.org/images/smilies/fish.gif
tinyurl.com/dev5t3 myonlineteam.org/images/smilies/fish1.gif
tinyurl.com/c64jnv myonlineteam.org/images/smilies/fish2.gif
tinyurl.com/coqwzf myonlineteam.org/images/smilies/fish3.gif
tinyurl.com/qp3e8k myonlineteam.org/images/smilies/fisherman.gif
tinyurl.com/orwrnr myonlineteam.org/images/smilies/fishing1.gif
tinyurl.com/qoyprp myonlineteam.org/images/smilies/fishing2.gif
tinyurl.com/q8mqqk myonlineteam.org/images/smilies/fishing3.gif
tinyurl.com/qb4ynv myonlineteam.org/images/smilies/flames.gif
tinyurl.com/pduec2 myonlineteam.org/images/smilies/flapjack.gif
tinyurl.com/rb8akk myonlineteam.org/images/smilies/flash.gif
tinyurl.com/ozmzdy myonlineteam.org/images/smilies/floss.gif
tinyurl.com/p2c9oo myonlineteam.org/images/smilies/flower.gif
tinyurl.com/p58fcv myonlineteam.org/images/smilies/flower1.gif
tinyurl.com/okbk2j myonlineteam.org/images/smilies/flying.gif
tinyurl.com/pmrckm myonlineteam.org/images/smilies/foggywindow.gif
tinyurl.com/r3lx2b myonlineteam.org/images/smilies/foodfight.gif
tinyurl.com/rar2ff myonlineteam.org/images/smilies/football.gif
tinyurl.com/qqehsh myonlineteam.org/images/smilies/football1.gif
tinyurl.com/qd27a6 myonlineteam.org/images/smilies/football2.gif
tinyurl.com/qbvond myonlineteam.org/images/smilies/foryou.gif
tinyurl.com/qnrrdc myonlineteam.org/images/smilies/frankenstein.gif
tinyurl.com/re5dbq myonlineteam.org/images/smilies/frankenstein1.gif
tinyurl.com/ox88k4 myonlineteam.org/images/smilies/frankenstein2.gif
tinyurl.com/r5bwmv myonlineteam.org/images/smilies/freezing.gif
tinyurl.com/rcwlhj myonlineteam.org/images/smilies/friday.gif
tinyurl.com/raywwq myonlineteam.org/images/smilies/friedegg.gif
tinyurl.com/qbb7mj myonlineteam.org/images/smilies/friendsforever.gif
tinyurl.com/p5738g myonlineteam.org/images/smilies/frozen.gif
tinyurl.com/pdfo5e myonlineteam.org/images/smilies/fryingpan.gif

----------------------------------------
Join/Website/IMODB



[May 10, 2009 12:48:34 AM]   Link   Report threatening or abusive post: please login first  Go to top 
keithhenry
Ace Cruncher
Senile old farts of the world ....uh.....uh..... nevermind
Joined: Nov 18, 2004
Post Count: 18665
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: smilesmile Join "MyOnlineTeam" Today - Chapter 35 smilesmile

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.
----------------------------------------
Join/Website/IMODB



[May 10, 2009 1:08:12 AM]   Link   Report threatening or abusive post: please login first  Go to top 
darth_vader
Veteran Cruncher
A galaxy far, far away...
Joined: Jul 13, 2005
Post Count: 514
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: smilesmile Join "MyOnlineTeam" Today - Chapter 35 smilesmile

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
[May 10, 2009 1:08:45 AM]   Link   Report threatening or abusive post: please login first  Go to top 
keithhenry
Ace Cruncher
Senile old farts of the world ....uh.....uh..... nevermind
Joined: Nov 18, 2004
Post Count: 18665
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
smilesmile Join "MyOnlineTeam" Today - Chapter 35 smilesmile

MyOnlineTeam Daily Statistics for 05/09 - All Members:

Team rank movement report
=========================

Prior New Current
Member name Rank Change Rank Points
========================= ===== ====== ===== ===========
joshuabayer 30 -1 31 2,187,047
Blueprint 31 +1 30 2,193,200
mlafferty 64 -1 65 904,101
johng 65 +1 64 906,222
Kevin Deslauriers 107 -1 108 353,492
Bravehart 108 +1 107 358,527
Emily Autumns 141 -1 142 184,749
TheCoach 142 -1 143 175,097
VioletStranger 143 -1 144 174,977
Verhaegh 144 -1 145 170,870
Dresser 145 +4 141 187,410
Maddogstl 152 -1 153 146,290
darth_vader 153 +1 152 148,816
PioPicone 188 -1 189 68,828
makhre 189 -1 190 67,392
WindmillMan76043 190 +2 188 69,489
Dean Brockway 256 -1 257 12,754
Dataman@BC 257 -1 258 11,991
gr8buddha 258 +2 256 12,924
T P Goldy 280 -1 281 6,305
binhualu 281 -1 282 6,219
majevica 282 -1 283 5,641
rickcovery 283 -1 284 5,571
sskeataesn 284 -1 285 5,473
ds987564 285 -1 286 5,425
conservebirdhabitat.com 286 -1 287 5,199
Dan Brinsdon 287 -1 288 5,108
rwgreen89 288 +8 280 6,513

Points milestones report
========================
RT reached 12,000,000 points applause

Runtime milestones report
=========================
No runtime milestones found. sad

Results returned milestones report
==================================
Blueprint returned their 4,000th result applause
Airwolf_Liu returned their 2,100th result applause

New members report
==================
No new members found. sad

Retired members report
======================
No new retired members found. smile

For the week as a team:

Statistics  Total Run Time  Points   Results
Date (y:d:h:m:s) Earned Returned
05/09/2009 0:224:11:19:32 505,062 837
05/08/2009 0:207:09:52:33 477,203 787
05/07/2009 0:223:17:46:32 489,621 766
05/06/2009 0:231:06:37:16 518,871 870
05/05/2009 0:207:01:13:46 456,424 809
05/04/2009 0:211:16:00:08 469,850 807
05/03/2009 0:199:22:14:12 435,067 736


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!!!!
----------------------------------------
Join/Website/IMODB



[May 10, 2009 1:16:00 AM]   Link   Report threatening or abusive post: please login first  Go to top 
keithhenry
Ace Cruncher
Senile old farts of the world ....uh.....uh..... nevermind
Joined: Nov 18, 2004
Post Count: 18665
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
smilesmile Join "MyOnlineTeam" Today - Chapter 35 smilesmile

MyOnlineTeam Daily Statistics for 05/09 - Active Members

Active team members report
==========================

Current Points
Active member name Rank Change Points This Period
========================= ===== ====== =========== ===========
marysduby 1 0 29,757,824 65,047
nl59056 2 0 14,884,306 527
Dataman 3 0 13,671,909 43,135
parmesian 4 0 12,772,408 12,262
RT 5 0 12,002,893 49,970
Coingames 6 0 10,246,753 33,495
Esteban69 7 0 9,670,009 8,372
Blizzie 8 0 7,730,926 7,546
Dave Bell 9 0 7,456,285 18,276
keithhenry 10 0 6,673,678 18,982
Fanie 11 0 6,396,457 2,216
Mushball 12 0 5,750,511 24,372
Jonathan Figdor 13 0 5,236,372 1,727
frans6nl 14 0 5,155,049 6,287
PohSoon 15 0 4,771,460 2,788
Graham 16 0 4,641,465 0
sulcata 17 0 3,733,556 9,093
esoteric17 18 0 3,313,115 79,811
stares 19 0 2,915,995 2,756
Vuj 20 0 2,890,116 11,405
Alain Bryden 21 0 2,567,773 1,177
Tomwp 22 0 2,323,911 4,647
Blueprint 23 0 2,193,200 15,287
lawrencehardin 24 0 2,073,766 1,217
brown chris 25 0 1,878,381 22,175
The Aspens 26 0 1,812,279 10,536
siseberg 27 0 1,677,066 1,009
Wunderwuzzi 28 0 1,588,072 484
wrr 29 0 1,535,486 1,553
smcclarigan 30 0 1,301,319 2,311
Sunny L. Kae 31 0 1,224,413 2,227
AStafford 32 0 972,028 569
johng 33 0 906,222 2,937
NiceMedTexMD 34 0 744,178 1,915
laughing66607 35 0 711,789 1,217
Jockin 36 0 666,938 0
Airwolf_Liu 37 0 601,154 220
justins505 38 0 573,956 0
elpe 39 0 547,093 553
harry_i_c 40 0 486,526 1,478
Bon Kuhlman 41 0 465,674 0
Bravehart 42 0 358,527 8,072
Momentary Lapse of Reason 43 0 284,736 0
imin 44 0 255,365 1,385
mapplebeck 45 0 245,550 538
madambaster 46 0 211,321 259
Dresser 47 0 187,410 16,937
darth_vader 48 0 148,816 2,885
Natalino 49 0 125,693 0
Harry de Swart 50 0 123,943 0
CCH 51 0 83,853 0
WindmillMan76043 52 0 69,489 2,453
imdioxin 53 0 19,327 0
stonechild 54 0 17,269 0
gr8buddha 55 0 12,924 1,075
zzy8671 56 0 10,750 0
rwgreen89 57 0 6,513 1,879
Relheok 58 0 2,604 0


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
----------------------------------------
Join/Website/IMODB



[May 10, 2009 1:16:27 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: smilesmile Join "MyOnlineTeam" Today - Chapter 35 smilesmile

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.. crying
----------------------------------------
[Edit 1 times, last edit by Former Member at May 10, 2009 1:18:24 AM]
[May 10, 2009 1:16:35 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
smilesmile Join "MyOnlineTeam" Today - Chapter 35 smilesmile




.............CONGRATULATIONS RT ON REACHING 12,000,000 MOT POINTS !!!.............



[May 10, 2009 1:19:34 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Posts: 628   Pages: 63   [ Previous Page | 12 13 14 15 16 17 18 19 20 21 | Next Page ]
[ Jump to Last Post ]
Post new Thread