44import core .actions .DoNothing ;
55import core .interfaces .IPrintable ;
66import core .turnorders .ReactiveTurnOrder ;
7- import evaluation .listeners .GameListener ;
87import evaluation .metrics .Event ;
8+ import evaluation .listeners .GameListener ;
99import evaluation .summarisers .TAGNumericStatSummary ;
1010import games .GameType ;
1111import gui .AbstractGUIManager ;
3030import java .util .Collections ;
3131import java .util .List ;
3232import java .util .concurrent .atomic .AtomicInteger ;
33-
34- import evaluation .metrics .*;
3533import static utilities .Utils .componentToImage ;
3634
3735public class Game {
@@ -901,8 +899,6 @@ private void terminateVideoRecording() {
901899 }
902900 }
903901
904-
905-
906902 /**
907903 * The recommended way to run a game is via evaluations.Frontend, however that may not work on
908904 * some games for some screen sizes due to the vagaries of Java Swing...
@@ -916,19 +912,16 @@ private void terminateVideoRecording() {
916912 * and then run this class.
917913 */
918914 public static void main (String [] args ) {
919- String gameType = Utils .getArg (args , "game" , "GameTemplate " );
915+ String gameType = Utils .getArg (args , "game" , "Jaipur " );
920916 boolean useGUI = Utils .getArg (args , "gui" , true );
921- int playerCount = Utils .getArg (args , "nPlayers" , 2 );
922917 int turnPause = Utils .getArg (args , "turnPause" , 0 );
923918 long seed = Utils .getArg (args , "seed" , System .currentTimeMillis ());
919+ ActionController ac = new ActionController ();
924920
925- ActionController ac = new ActionController (); //null;
926-
927- /* Set up players for the game */
928- ArrayList <AbstractPlayer > players = new ArrayList <>(playerCount );
929-
930- players .add (new RandomPlayer ());
921+ // 1. Set up the players for the game.
922+ ArrayList <AbstractPlayer > players = new ArrayList <>();
931923// players.add(new RandomPlayer());
924+ players .add (new RandomPlayer ());
932925// players.add(new MCTSPlayer());
933926// MCTSParams params1 = new MCTSParams();
934927// players.add(new MCTSPlayer(params1));
@@ -937,14 +930,14 @@ public static void main(String[] args) {
937930 players .add (new HumanGUIPlayer (ac ));
938931// players.add(new HumanConsolePlayer());
939932// players.add(new FirstActionPlayer());
940- // players.add(new HumanConsolePlayer());
941933
942- /* 4 . Game parameter configuration. Set to null to ignore and use default parameters */
934+ // 2 . Game parameter configuration. Set to null to ignore and use default parameters
943935 String gameParams = null ;
944936
945- /* 5 . Run! */
937+ // 3 . Run!
946938 runOne (GameType .valueOf (gameType ), gameParams , players , seed , false , null , useGUI ? ac : null , turnPause );
947939
940+ // 4. Run several games
948941// ArrayList<GameType> games = new ArrayList<>(Arrays.asList(GameType.values()));
949942// games.remove(LoveLetter);
950943// games.remove(Pandemic);
0 commit comments