import java.util.*; /** Et matadorspil for to spillere */ public class SpilMatador { public static void main(String[] arg) { Spiller sp1=new Spiller("Søren",50000); // opret spiller 1 Spiller sp2=new Spiller("Gitte",50000); // opret spiller 2 ArrayList felter=new ArrayList(); // indeholder alle felter felter.add(new Start(5000)); felter.add(new Gade("Gade 1",10000, 400,1000)); felter.add(new Gade("Gade 2",10000, 400,1000)); felter.add(new Gade("Gade 3",12000, 500,1200)); felter.add(new Rederi("Maersk",17000,4200)); felter.add(new Gade("Gade 5",15000, 700,1500)); felter.add(new Helle(15000)); felter.add(new Gade("Gade 7",20000,1100,2000)); felter.add(new Gade("Gade 8",20000,1100,2000)); felter.add(new Gade("Gade 9",30000,1500,2200)); // løb igennem 20 runder for (int runde = 0; runde<20; runde=runde+1) { sp1.tur(felter); sp2.tur(felter); } } }