1 package net.innig.macker.example.modularity; 2 3 import net.innig.macker.example.modularity.game.*; 4 import net.innig.macker.example.modularity.game.impl.*; 5 import net.innig.macker.example.modularity.player.*; 6 import net.innig.macker.example.modularity.player.impl.*; 7 import java.util.*; 8 9 public class BrokenMain 10 { 11 public static void main(String [] args) 12 { 13 Game g = new RochambeauGame(); 14 g.setPlayer(0, new RandomPlayer()); 15 g.setPlayer(1, new CyclicPlayer()); 16 17 while(true) 18 { 19 System.out.println( 20 g.getPreviousMove(0) + " / " + g.getPreviousMove(1) 21 + " (score: " + g.getScore(0) + " to " + g.getScore(1) + ")"); 22 g.move(); 23 } 24 } 25 } 26 | Popular Tags |