Exemple #1
0
 public GameGui(Game game, Individual opponent)
 {
     InitializeComponent();
     this.game      = game;
     this.playerTwo = opponent;
     playerOne      = new Individual(game.getBoard(), "Player One", false, null, null);
     playerOne.setValue(1);
     playerOne.setIsHumanPlayer(true);
     this.playerTwo.setBoard(game.getBoard());
     drawTree = new DrawTree(opponent.getStrategy());
 }
 public Individual(Individual individual)
 {
     this.playerName = individual.playerName;
     fitness         = individual.fitness;
     strategy        = new Tree(individual.getStrategy());
     this.setBoard(individual.board);
     setFunctionList(individual.getFunctionList());
     setTerminalList(individual.getTerminalList());
     wins   = new int[2];
     losses = new int[2];
     draws  = new int[2];
 }