-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainApplication.java
More file actions
48 lines (39 loc) · 1.53 KB
/
MainApplication.java
File metadata and controls
48 lines (39 loc) · 1.53 KB
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
package com.github.git_leon.casino;
import com.github.git_leon.casino.utils.Card;
import com.github.git_leon.casino.utils.Deck;
import com.github.git_leon.casino.utils.Rank;
import com.github.git_leon.casino.utils.Suit;
import java.sql.SQLOutput;
import java.util.ArrayList;
import java.util.List;
public class MainApplication {
public static void main(String[] args) {
//Welcome message first
Console console = new Console();
console.println("Welcome to the Casino");
String userInput = console.getStringInput("From here you [make account], [select account], [select game]");
if(userInput == "make account") {
Account account = makeAcount();
}
}
private static Account makeAcount() {
Console console = new Console();
console.println("Welcome to the account creation screen");
String userName = console.getStringInput("What is your name?");
Double userMoney = console.getDoubleInput("How much money do you have?");
Account account = new Account();
account.setUserName(userName);
account.setMoney(userMoney);
return account;
}
public void shuffle(){
ArrayList<Card> tempDeck = new ArrayList<Card>();
}
public static Person createPerson() {
Console console = new Console();
String name = console.getStringInput("What is your name?");
Integer age = console.getIntegerInput("What is your age?");
Person newUser = new Person(name, age);
return newUser;
}
}