Jamez-s 9a5d6ac683 Merge branch 'master' of https://git.zipcode.rocks/Jamez-s/ZCW-Lab-Blackjack | 6 jaren geleden | |
---|---|---|
.idea | 6 jaren geleden | |
Test/rocks/zipcode | 6 jaren geleden | |
src/rocks/zipcode | 6 jaren geleden | |
test/rocks/zipcode | 6 jaren geleden | |
.gitignore | 6 jaren geleden | |
README.TXT | 6 jaren geleden | |
README.md | 6 jaren geleden | |
package.bluej | 6 jaren geleden | |
pom.xml | 6 jaren geleden |
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.