use non defaut constructor
This commit is contained in:
parent
f6fa2759a6
commit
38933c4a49
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -9,7 +9,7 @@ const ALIVE_COLOR = "#FFFFFF";
|
|||
|
||||
const seed = Math.random();
|
||||
const universe = ((seed) => {
|
||||
if (seed < 1/3) return Universe.new();
|
||||
if (seed < 1/3) return Universe.new_modulo();
|
||||
else if (seed < 2/3) return Universe.new_random();
|
||||
else return Universe.new_space_ship();
|
||||
})(seed);
|
||||
|
|
Loading…
Reference in a new issue