Tennessee Gibbs 3e7f01c8a1 Just before break | 6 anos atrás | |
---|---|---|
.idea | 6 anos atrás | |
Source | 6 anos atrás | |
Test | 6 anos atrás | |
.gitignore | 6 anos atrás | |
README.TXT | 6 anos atrás | |
README.md | 6 anos atrás | |
package.bluej | 6 anos atrás | |
pom.xml | 6 anos atrás |
Make a blackjack game, play against the computer-dealer. Aces are always, only, 1.
Writing a Blackjack program
Create a BlackJack class, with a runGame() method.
That’s all!
you might want to use...
public int generateRandomInt() {
int min = 1;
int max = 10;
Random r = new Random();
return r.nextInt((max - min) + 1) + min;
}
You will have to put
import java.util.Random;
at the very top of your class file.