Skip to content

Commit 70d1983

Browse files
committed
Extract constant T_REX_COUNT
1 parent 16537f6 commit 70d1983

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/apps/genetic-nn.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { Runner } from '../game';
55
import NNModel from '../ai/models/genetic-nn/NNModel';
66
import GeneticModel from '../ai/models/genetic/GeneticModel';
77

8+
const T_REX_COUNT = 10;
9+
810
const geneticModel = new GeneticModel();
911
const rankList = [];
1012

@@ -13,7 +15,7 @@ let runner = null;
1315
function setup() {
1416
// Initialize the game Runner.
1517
runner = new Runner('.game', {
16-
T_REX_COUNT: 4,
18+
T_REX_COUNT,
1719
onReset: handleReset,
1820
onCrash: handleCrash,
1921
onRunning: handleRunning

0 commit comments

Comments
 (0)