public StatSimulation(int runCount, int boardSeed, PopulationSettings populationSettings) { this.runCount = runCount; this.boardSeed = boardSeed; this.populationSettings = populationSettings; boardSource = new BoardSourceStatistical(10, 10, this.boardSeed); }
public static Board FromIBoardSource(IBoardSource source) { //update game settings GameSettings.Rows = source.Rows; GameSettings.Columns = source.Columns; Board board = new Board(); foreach (Piece piece in source.GetPiecesForBoard()) { board[piece.Row, piece.Column] = piece; } board.SaveBoard(); return board; }