i would like to make a program for a new card game, and idea i devised from the star wars series. i was wondering if anyone had any open source c++ code from poker or spades or any other one deck games i could have to study, perferrably including the source code for any classes associated with it as well. i am just learning how to program in c++, and i'm trying to figure out an efficient way to program a shuffler into the deck. i appreciate any help or advise from anyone more knowledgable then me (which is just about everyone at this point :D )
I think you would benefit more if you studied some Game development code then asked specific questions you had when they arise.
Game development programming is a very difficult avenue to pursue as you must be proficient in your language of choice (C++) and a graphical language (DirectX/OpenGL). But there are many forums and tutorials on them.
I reckon a good way to build your app would be to make the card game display the cards in text mode before you get onto the graphics. That way you will have the program design and logic down pat, then you can work on upgrading the output to something cooler... it's the boring way, but the best way if you actually want to finish the project with hair..
There are loads of open source card games for linux, just go to freshmeat.net and do a search, try to find a text based one if possible as it will be the easiest to port to windows if that's what you use. Remember to contact the author before you use any substantial portion of their code, and you'll have to read the gnu licence too...
thank you, zaita and numartian. these are very helpful suggestions. i will look right away for a linux card game, and keep that in mind about liscenses and such