|
|
пре 8 година | |
|---|---|---|
| .idea | пре 8 година | |
| src/rocks/zipcode | пре 8 година | |
| test/rocks/zipcode | пре 8 година | |
| .gitignore | пре 8 година | |
| README.TXT | пре 8 година | |
| README.md | пре 8 година | |
| package.bluej | пре 8 година | |
| pom.xml | пре 8 година |
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.