hmm...it might be cuz i played an online one made by a british guy
hmm...it might be cuz i played an online one made by a british guy
Stupid people are useful. You can make them do all the mindless tasks you are too lazy to do yourself.
Sphynx cats are just bald and wrinkly, like old people, and we don't reject them.
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.
"The most important thing about acting is honesty. If you can fake that you've got it made" - George Burns
oh...heh 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.
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.
Stupid people are useful. You can make them do all the mindless tasks you are too lazy to do yourself.
Sphynx cats are just bald and wrinkly, like old people, and we don't reject them.
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.
If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein
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)
Stupid people are useful. You can make them do all the mindless tasks you are too lazy to do yourself.
Sphynx cats are just bald and wrinkly, like old people, and we don't reject them.
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.
Last edited by The Brain; 09-11-2004 at 10:48 AM.
- "Problem Solving C++, The Object of Programming" -Walter Savitch
- "Data Structures and Other Objects using C++" -Walter Savitch
- "Assembly Language for Intel-Based Computers" -Kip Irvine
- "Programming Windows, 5th edition" -Charles Petzold
- "Visual C++ MFC Programming by Example" -John E. Swanke
- "Network Programming Windows" -Jones/Ohlund
- "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
- "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel
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.
- "Problem Solving C++, The Object of Programming" -Walter Savitch
- "Data Structures and Other Objects using C++" -Walter Savitch
- "Assembly Language for Intel-Based Computers" -Kip Irvine
- "Programming Windows, 5th edition" -Charles Petzold
- "Visual C++ MFC Programming by Example" -John E. Swanke
- "Network Programming Windows" -Jones/Ohlund
- "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
- "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel