• Post Reply Bookmark Topic Watch Topic
  • New Topic

blackjack in Java  RSS feed

 
tsz chun lau
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a 3 question of that, that code is not complete yet.
1: how can i get the sum ? it is use for calculate the final score and prove is it over than 21 or below than 21
2:If player hit the card, how can he take the card also it must take on deck top
3:If player 2 hit the card, how should i do?

thanks for your help
Best regarding

Staff note (Junilu Lacar):

You can find instructions for using code tags here: https://coderanch.com/wiki/659781/Code-Tags

 
Junilu Lacar
Sheriff
Posts: 11494
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

A couple of things you should know so you can make the best of your visit here:

We encourage students to do their own homework; we won't do it for you.

Chill. Putting "urgent" in the subject won't get you help faster. We're all volunteers here so help will come when it comes, if it comes.
 
Carey Brown
Saloon Keeper
Posts: 3328
46
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, you need to use "Code" tags when posting source code. After you cut and paste your code into the edit window highlight (select) all of the code and then click on the "Code" button just above the edit window. I'll fix it for you this time but you'll be required to do it yourself from now on.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!