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...
Type: Posts; User: asad1221
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...