Click here to Skip to main content
15,918,404 members
Home / Discussions / C#
   

C#

 
GeneralRe: Drawing cards from a deck Pin
Guffa15-Jan-09 6:32
Guffa15-Jan-09 6:32 
GeneralRe: Drawing cards from a deck Pin
Tony Pottier15-Jan-09 6:40
Tony Pottier15-Jan-09 6:40 
AnswerRe: Drawing cards from a deck [modified] Pin
Luc Pattyn15-Jan-09 6:42
sitebuilderLuc Pattyn15-Jan-09 6:42 
GeneralRe: Drawing cards from a deck Pin
Guffa15-Jan-09 6:55
Guffa15-Jan-09 6:55 
AnswerRe: Drawing cards from a deck [modified] Pin
Luc Pattyn15-Jan-09 6:59
sitebuilderLuc Pattyn15-Jan-09 6:59 
GeneralRe: Drawing cards from a deck Pin
Tony Pottier15-Jan-09 7:27
Tony Pottier15-Jan-09 7:27 
AnswerRe: Drawing cards from a deck [modified] Pin
Luc Pattyn15-Jan-09 7:31
sitebuilderLuc Pattyn15-Jan-09 7:31 
AnswerRe: Drawing cards from a deck Pin
Henry Minute15-Jan-09 12:34
Henry Minute15-Jan-09 12:34 
It's a bit late to be posting on this thread, but I've been busy.

I wrote a Cribbage card game, some years ago and the way that I did it was to implement a deck class which had a shuffle method, which simply filled a list with random cards (numbers 0-51), drawing again if already used. Dealing then simply became a matter of taking the 'next' card, tracked by an 'index' field. This had many advantages during testing since the deck was still there in the original order. Dont know if this is a good idea, or even relevant to your simulation idea.

Henry Minute

If you open a can of worms, any viable solution *MUST* involve a larger can.

GeneralRe: Drawing cards from a deck Pin
Tony Pottier15-Jan-09 12:42
Tony Pottier15-Jan-09 12:42 
QuestionWildcards Pin
boiDev15-Jan-09 2:15
boiDev15-Jan-09 2:15 
AnswerRe: Wildcards Pin
SeMartens15-Jan-09 2:24
SeMartens15-Jan-09 2:24 
AnswerRe: Wildcards [modified] Pin
EliottA15-Jan-09 2:52
EliottA15-Jan-09 2:52 
GeneralRe: Jerkface Pin
EliottA15-Jan-09 3:09
EliottA15-Jan-09 3:09 
GeneralRe: Jerkface Pin
DaveyM6915-Jan-09 3:30
professionalDaveyM6915-Jan-09 3:30 
GeneralRe: Jerkface Pin
EliottA15-Jan-09 3:36
EliottA15-Jan-09 3:36 
GeneralRe: Jerkface Pin
DaveyM6915-Jan-09 3:40
professionalDaveyM6915-Jan-09 3:40 
GeneralRe: Jerkface Pin
Pete O'Hanlon15-Jan-09 3:47
mvePete O'Hanlon15-Jan-09 3:47 
QuestionCalling optional parameterized method in c# Pin
Krishnaraj Barvathaya B15-Jan-09 1:40
Krishnaraj Barvathaya B15-Jan-09 1:40 
AnswerRe: Calling optional parameterized method in c# Pin
DaveyM6915-Jan-09 3:36
professionalDaveyM6915-Jan-09 3:36 
GeneralRe: Calling optional parameterized method in c# Pin
Dave Kreskowiak15-Jan-09 4:39
mveDave Kreskowiak15-Jan-09 4:39 
GeneralRe: Calling optional parameterized method in c# Pin
Scott Dorman15-Jan-09 5:00
professionalScott Dorman15-Jan-09 5:00 
GeneralRe: Calling optional parameterized method in c# Pin
Krishnaraj Barvathaya B15-Jan-09 7:14
Krishnaraj Barvathaya B15-Jan-09 7:14 
AnswerRe: Calling optional parameterized method in c# Pin
Dave Doknjas15-Jan-09 13:22
Dave Doknjas15-Jan-09 13:22 
GeneralRe: Calling optional parameterized method in c# Pin
Krishnaraj Barvathaya B15-Jan-09 21:12
Krishnaraj Barvathaya B15-Jan-09 21:12 
QuestionHow to read 32 bit registry value from 64 bit application Pin
Hemal Kotak15-Jan-09 0:59
Hemal Kotak15-Jan-09 0:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.