ga.js
// Generate a new population of birds

Generate a new population of birds
Generate a new population of birds
function generate(oldBoards) {
  let newBoards = [];
  for (let i = 0; i < oldBoards.length; i++) {
    let board = poolSelection(oldBoards);
    newBoards[i] = board;
  }
  return newBoards;
}
function generate ( oldBoards ) { let newBoards = [ ] ; for ( let i = 0 ; i < oldBoards . length ; i ++ ) { let board = poolSelection ( oldBoards ) ; newBoards [ i ] = board ; } return newBoards ; }
Generate a new population of birds
Generate a new population of birds
// Select a bird based on fitness
