Hi guys, for a project I'm doing I want to create a program that plays Black Jack.
But as I got thinking about it, I realized I have no idea how I should declare different suits and cards.
I need to be able to randomly choose a card as if drawn from a deck and just need some ideas on how to do it.
I'm really new to java so my understanding is kind of limited. But from what I can tell I can randomly choose an enum from a group of them. and I'm thinking that may be what I have to do to get a random card draw. But that would mean I'd have to assign an enum for every card and its suit right? Also these enums, or whatever I use need to be able to store the value of their card so that I can check the points.
I'm just curios how you guys might go about doing a program like this?
This is kind of how I plan to have it look like when I'm finished. I realize that this is really novice looking, but I'm sort of restricted to how I'm allowed to do this and by what I know how to do. =/ A more sophisticated GUI isn't an option.