Know how to write window - doesn't help ! You may begin with: - class that represent card. - think about how to save cards. (for example in vector). - rules of the game. - main program. - how to use random generator to the game ...... The steps can be done witout any gui at all, all gui is System.out.println(...) Good luck !
Joined: Nov 29, 2003
I don�t get it maybe I am stupid, so could you please give me the source code so I can have a look at it �nd then I will try to understand it? thanx
If you are just curious about Java, writing a non-trivial GUI program is a recipe for frustration. Like Igor suggested, try doing it as a command-line program. If this is a homework assignment and you have to use a GUI, shame on you for trying to cheat! In any case, all things Java can be learned through the Java Tutorial. Plenty of examples there.
Wellto start with this is not a homework assignment and Iam only curious of hoe it works,therefore I ask you guys who knows if you can help me with the source code so I can understand how it works. thanx
Originally posted by Alexander Skagerlind: . . .if you can help me with the source code so I can understand how it works. thanx
Asking for source code is a red flag that you are a student looking for something to copy. We will gladly discuss designs and algorithms, as Igor did first off, steer you to useful resources like the Java Tutorial as I did, help you with any problems in your own code when you post it, or mock you for being lazy. If you want to learn to program, start reading the tutorial and writing code. If you just want to look at code, try finding an open source card program. Even if someone had written a Blackjack game I doubt they'd post the source without some extraordinary effort on your part.