public override Player Copy(Board board) { Player random = new RandomPlayer(Culture, CurGame); Coord tmpCursor = new Coord(0, 0); for (int i = 0; i < GetPawns().Count; i++) { APawn tmpPawn = GetPawns()[i].Copy(board); random.AddPawn(tmpPawn); } random.SetCultCenter(CultCenter.Copy(board)); random.SetCursor(tmpCursor); return(random); }
public override Player Copy(Board board) { Player mcts = new MonteCarloTreeSearch(GetCulture()); Coord tmpCursor = new Coord(GetCursor().X, GetCursor().Y); for (int i = 0; i < GetPawns().Count; i++) { APawn tmpPawn = GetPawns()[i].Copy(board); mcts.AddPawn(tmpPawn); } mcts.SetCultCenter(CultCenter.Copy(board)); mcts.SetCursor(tmpCursor); return(mcts); }
public override Player Copy(Board board) { Player human = new HumanPlayer(GetCulture()); Coord tmpCursor = new Coord(GetCursor().X, GetCursor().Y); for (int i = 0; i < GetPawns().Count; i++) { APawn tmpPawn = GetPawns()[i].Copy(board); human.AddPawn(tmpPawn); } human.SetCultCenter(CultCenter.Copy(board)); human.SetCursor(tmpCursor); return(human); }