iam not sure on how to do that can u give me an example of how it would be?
Type: Posts; User: asad1221
iam not sure on how to do that can u give me an example of how it would be?
I am creating a hangman code and i am done the basic code for my summative but i just need to add some small parts that i don't know how to do.
So the game i am creating is 2 player, first player...
my while loop is not working properly for the player. if i click hit first time it adds up score properly and everything but if i click hit again than it ignores the old number and only adds the new...
my while loop is not working properly for the player. if i click hit first time it adds up score properly and everything but if i click hit again than it ignores the old number and only adds the new...
it does not have to be any thing advanced. its supposed to be computer(dealer) vs. player. you have to deal #'s from 1-11.
import java.util.Scanner;
public class Deck {
public static void main(String[] args) {
int deal=(int)(11*Math.random()+1);
int deal1=(int)(11*Math.random()+1);
int...
You do not have to go in depth. I just have to continue dealing numbers to the player and dealer if they hit if they pass 21 it's a bust.
import java.util.Scanner;
public class Deck {
public static void main(String[] args) {
int deal=(int)(11*Math.random()+1);
Scanner input = new Scanner(System.in);
i am trying to make a black jack game for dr. java and i am a beginner to this but i have to do it for my cs class and i want to know how do i make the program deal 2 cards to the dealer as well as...