PT
Developer Forums
Register
Login
Code Snippets
->
Card Shuffler
<
1
>
P
Preston C
Joined:
16th May 2003
Location:
Penn State University Park
Posted:
11th Aug 2003 5:34
Though it only shuffles 52 numbers, it shuffles like it was a deck of cards. Will be adding card detection later, so you could differentiate the different cards. This code also writes the current deck to a txt file, for easy viewing.
P
Preston C
Joined:
16th May 2003
Location:
Penn State University Park
Posted:
11th Aug 2003 5:35
Oh yeah, its DBC, not tested in Pro, sorry about that.
I
indi
Joined:
26th Aug 2002
Location:
Earth, Brisbane, Australia
Posted:
11th Aug 2003 7:34
how about you clean up the program correctly instead of leaving all those arrays undimmed at the end of your code.
why dont people care about clean up amazes me.
H
Hell IVIonkey
Joined:
1st Apr 2003
Location:
Outer Limits
Posted:
11th Aug 2003 8:06
Come on man, it's not so terrible that he forgot. The main point of the code is the function it performs. And it did what it's supposed to do well.
I
indi
Joined:
26th Aug 2002
Location:
Earth, Brisbane, Australia
Posted:
11th Aug 2003 9:21
no its sloppy and can cause errors later.
practise being neat now will save a tonne of problems later.
I
indi
Joined:
26th Aug 2002
Location:
Earth, Brisbane, Australia
Posted:
11th Aug 2003 9:22
at least we dont have to mess around like in C ill give you that.