aspose file tools*
The moose likes Beginning Java and the fly likes Black Jack program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Black Jack program" Watch "Black Jack program" New topic
Author

Black Jack program

Alexander Skagerlind
Greenhorn

Joined: Nov 29, 2003
Posts: 4
HELLO!
Can someone please help me to construct a Black JAck program???
thanx for the help!
Rocky Summers
Ranch Hand

Joined: Nov 07, 2003
Posts: 66
why don't you start making the program and if you encounter some probs maybe we can help u with the prob
Alexander Skagerlind
Greenhorn

Joined: Nov 29, 2003
Posts: 4
I don't know how to start???
well I know how u make the window but then I am stuck
so maybe you can give some help?
Igor Ko
Ranch Hand

Joined: Jun 24, 2002
Posts: 90
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 !
Alexander Skagerlind
Greenhorn

Joined: Nov 29, 2003
Posts: 4
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
Murali Nanchala
Ranch Hand

Joined: Mar 14, 2001
Posts: 74
Nice Try!


"It is almost always answered in the API" - Murali Nanchala
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8908
    
    8

Originally posted by Alexander Skagerlind:

so could you please give me the source code. . .

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Rocky Summers
Ranch Hand

Joined: Nov 07, 2003
Posts: 66
tsk tsk tsk...


he.. he..
Alexander Skagerlind
Greenhorn

Joined: Nov 29, 2003
Posts: 4
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
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8908
    
    8

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Black Jack program