Skip to content
Snippets Groups Projects
Commit ae33a1bf authored by iliya's avatar iliya
Browse files

feat: asking user for number of decks of cards to create

parent 88d19f94
Branches
Tags
No related merge requests found
...@@ -8,10 +8,10 @@ import java.util.Scanner; ...@@ -8,10 +8,10 @@ import java.util.Scanner;
public class App { public class App {
public static void main(String[] args) { public static void main(String[] args) {
int nbDecks = 5;
Scanner scanner = new java.util.Scanner(System.in); Scanner scanner = new java.util.Scanner(System.in);
System.out.print("How many decks of cards would like to create: ");
int nbDecks = scanner.nextInt();
System.out.print("Please specify the amount of human players: "); System.out.print("Please specify the amount of human players: ");
int nbHumanPlayers = scanner.nextInt(); int nbHumanPlayers = scanner.nextInt();
System.out.print("Please specify the amount of BASIC AI players: "); System.out.print("Please specify the amount of BASIC AI players: ");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment