Skip to content

Commit 16537f6

Browse files
committed
Extract constant
1 parent 3dced0e commit 16537f6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/apps/genetic.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import { Runner } from '../game';
55
import GeneticModel from '../ai/models/genetic/GeneticModel';
66
import RandomModel from '../ai/models/genetic/RandomModel';
77

8-
const trainingInputs = [];
9-
const trainingLabels = [];
8+
const T_REX_COUNT = 10;
109

1110
let runner = null;
1211

@@ -16,7 +15,7 @@ const geneticModel = new GeneticModel();
1615
function setup() {
1716
// Initialize the game Runner.
1817
runner = new Runner('.game', {
19-
T_REX_COUNT: 10,
18+
T_REX_COUNT,
2019
onReset: handleReset,
2120
onCrash: handleCrash,
2221
onRunning: handleRunning

0 commit comments

Comments
 (0)