-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
51 lines (44 loc) · 914 Bytes
/
Main.java
File metadata and controls
51 lines (44 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Welcome to BlackJack! Please insert your name.");
System.out.print("Player Name: ");
String name1 = in.next();
System.out.println("⭐️Welcome to the game " + name1 + "⭐️");
System.out.println();
Game curGame = new Game(name1);
curGame.gameStart();
in.close();
}
}
/*
* User class -> dealer / player
* Attributes
* 1. Name
* 2. stack of card owned
* 3. money
* 4. total points
* Functions
* 1. showCard(dealer)
* 2. addPoint
*/
/* card
* Attributes
* 1. suit
* 2. value
* Functions
* 1. getSuit
* 2. getValue
* 3. showCard
*/
/* Game
* Attributes
* 1. isEnd
* 2. PlayerList
* 3. cardStack
* Functions
* 1. Check wins
* 2. newGame
* 3. gameStart
*/