Skip to content

Commit

Permalink
Move generation property to Population.js internal prototype chain se…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
christianechevarria committed Jan 11, 2020
1 parent 14bb0bf commit 355a86e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/architecture/population.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const Population = function(options) {
...options, // options goes first so that any duplicate properties are overwritten by internal defaults
species: [],
stagnation: 0,
generation: 0,
});

/**
Expand Down Expand Up @@ -299,8 +300,7 @@ Population.default = {
maxNodes: Infinity,
maxConns: Infinity,
maxGates: Infinity,
generation: 0,
// internal id management variables
// internal id management variables, leaving here in case user would like to override these
nodeIds: { last: 0 },
connIds: { last: 0 },
}
Expand Down

0 comments on commit 355a86e

Please sign in to comment.