[edit] I was pulling out a random card from an already randomized deck. Like playing blackjack and pulling cards from the middle. Sorry guys!
Can this thread remain open? I will need more help and would love the input of the people on this site.
Hey I've only just started the basics of this program and I'm wondering if anyone can shed some light on an issue I'm having.
My instructor uses hypergrade so my program has to match his results to the T.
Problem:
My cards dont match his for user and dealer.
Example:
Using rand() with a seed of (1) his user cards are 4,10 and dealer 10,10.
Mine are 11,9 and 10, 10.
In a card game, it's typical that you deal off the top of the deck not the middle of the deck, or the bottom of the deck. We normally call that cheating.
I haven't found the problem, but I suspect it is due to your dealer deck and user deck functions. It looks like your pulling cards from 26-29. I figure if I tell you that, you might can fix it quicker than I could.
26 ACE (11)
27 NINE (9)
28 JACK (10)
29 KING (10)
Seed the random number generator
1
1 FOUR (4)
2 TEN (10)
3 JACK (10)
4 JACK (10)
5 SIX (6)
6 NINE (9)
7 ACE (11)
8 SIX (6)
9 TWO (2)
10 SIX (6)
11 EIGHT (8)
12 TWO (2)
13 QUEEN (10)
14 SEVEN (7)
15 ACE (11)
16 KING (10)
17 KING (10)
18 JACK (10)
19 THREE (3)
20 FOUR (4)
21 TEN (10)
22 SEVEN (7)
23 FIVE (5)
24 QUEEN (10)
25 FIVE (5)
26 ACE (11)
27 NINE (9)
28 JACK (10)
29 KING (10)
30 FIVE (5)
31 TWO (2)
32 EIGHT (8)
33 THREE (3)
34 NINE (9)
35 FOUR (4)
36 THREE (3)
37 TEN (10)
38 THREE (3)
39 QUEEN (10)
40 FIVE (5)
41 ACE (11)
42 SEVEN (7)
43 SIX (6)
44 TEN (10)
45 EIGHT (8)
46 FOUR (4)
47 KING (10)
48 QUEEN (10)
49 SEVEN (7)
50 NINE (9)
51 TWO (2)
52 EIGHT (8)
players cards are: 11
players cards are: 9
dealers cards are: 10
dealers cards are: 10