Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Black Jack program

 
Alexander Skagerlind
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HELLO!
Can someone please help me to construct a Black JAck program???
thanx for the help!
 
Rocky Summers
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nice Try!
 
Joe Ess
Bartender
Pie
Posts: 9258
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rocky Summers
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tsk tsk tsk...


he.. he..
 
Alexander Skagerlind
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 9258
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic