diff --git a/Mainpp.java b/Mainpp.java index 4a45cda..d2e295e 100644 --- a/Mainpp.java +++ b/Mainpp.java @@ -1,36 +1,38 @@ - import java.util.ArrayList; -import java.util.Scanner; - - -public class Mainpp { - - public static ArrayList gameList = new ArrayList(); +import java.util.LinkedList; - public static int opt1,opt2 = 0; - - - public static void main(String[] args) { - - gameList.add(new Game("1",50, 5000)); - gameList.add(new Game("2", 500, 10000)); +import java.util.Queue; +import java.util.Scanner; +public class Mainpp { - Player p1 = new Player( 500); - Implementation.waitingPlayers.offer(p1); //experimenting not important + public static ArrayList gameList = new ArrayList(); + public static int opt1; - Scanner scan= new Scanner(System.in); + public static void main(String[] args) { - Implementation.implement(scan); + gameList.add(new Game("3", 50, 5000)); - } + gameList.add(new Game("2", 50, 10000)); + Player p1 = new NormalPlayer(5000); + + Player p2= new NormalPlayer(8600); + FileReader kite= new FileReader(); + kite.loadGameFile(); + kite.getAllPlayersFromFile(); + + Implementation.waitingPlayers.offer(p1); // experimenting not important + Implementation.waitingPlayers.offer(p2); + Scanner scan = new Scanner(System.in); + Implementation.implement(scan); + } }