hmm...it might be cuz i played an online one made by a british guy
Printable View
hmm...it might be cuz i played an online one made by a british guy
lol, I'm british, if it wasn't for money that would explain it. As I said it's a cool rule, would make your game more playable.
oh...heh :p didn't notice ur Location. it was for a chat game. just so people didn't get bored. actually, it was made with an "unofficial" programming language specifically made for making online games. Very helpful. and it was OOP. :cool:
I made a few games myself on it. I'm working on getting my skills high enough so I can make a network game. I didn't understand a lot of the winsock stuff. :rolleyes:
MMD_Lynx, in case you haven't seen any of my previous posts, Beej's Guide is my favorite thing to refer to those having difficulties with socket programming.
i'll bookmark it for later. let's keep this strictly Blackjack/card game related. (this is a REALLY long post for such a seemingly simple subject)
all these shuffle algorithms were nice... but I was thumbing through the book today.. and found exactly what we were looking for...
random_shuffle() will re-arrange array elements in a pseudo-random order (which I think necessitates the use of srand()).Code:
#include<algorithm>
random_shuffle(array[0], array[51]); //list first and last usable elements as parameters
lots of cool stuff in the <algorithm> library btw. :cool:
Fairly up-to-date reference to the STL:Code:random_shuffle(&array[0], &array[51]);
http://www.sgi.com/tech/stl/table_of_contents.html
gg
ahhh... good catch... book had the example templated.. my attempt to translate into laymans terms failed.