I have not been around here since I started almost 2 years ago with this account and I do not have too much time currently to browse all the forum to find all the answers and tips etc. i could use/need.
That said, I appreciate and thank any and all people who do reply and help me in any way. I have a fairly large project I want to do as a side hobby now that I finally have a seemingly more stable job situation.
As the subject states, I want to create just a basic deck of cards and learn how to manipulate the deck and the best or correct way to do it. Since graduating college 2 years ago and all the Java I did learn I went through almost 100% of the Java Head Start 2 years ago. I learned a lot of things school did not teach me but I am still iffy on things like Arraylist and some of the newer/more complicated subjects. I have tried doing some basic deck creations and shuffling methods from some online research and nothing seems to work too well.
I have worked some with GUI stuff and I also on top of wanting to be able to create a card game, I want to be able to display for now in a very simple way the cards themselves instead of just some printout in the console of letters and numbers with the word spelled out for the suits. I have tried doing some basic ideas for what classes and methods etc i want but I just get to a point where I am either over thinking it or I am missing something and I do not realize it.
Hopefully what I have here at least gives anyone reading this a good idea of what I want to do for now and what I would like to learn. I want to be confident in my coding and logic skills and also keep myself using the code before i really start losing what i learned.
I will get the basic methods and classes together in a reply post for what I feel I need and will take the criticisms and ideas etc. as they come before I actually do any real coding. I am currently going to use Netbeans and the the JDK that came with it.
Jamie Laurent wrote:on top of wanting to be able to create a card game, I want to be able to display for now in a very simple way the cards themselves instead of just some printout in the console of letters and numbers with the word spelled out for the suits. I have tried doing some basic ideas for what classes and methods etc i want but I just get to a point where I am either over thinking it or I am missing something and I do not realize it.
Well, unless we see some of that thinking, there's very little we can advise on.
However, I will say this: The game and its display, GUI or otherwise, are two completely different things, and should be kept separate.
I would say that testing with console output is exactly what you want to do; and don't even think about writing GUI code until you have proved to your satisfaction that the game works. Swing is hard enough without having to worry about whether the underlying game logic is correct or not.
And even when you do write the GUI: keep it separate. That is to say: your game classes (presumably, things like Card, Deck, Suit, Player etc.) should not include ANY classes starting with 'J'.
If you want to display them, I'd suggest creating a custom display class (eg, CardGUI) and passing a Card to it; but it has to be said that I'm no GUI expert, and there may be other/better techniques.
subject: Creating a simple base to a basic card game with GUI