-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.js
22 lines (21 loc) · 1.09 KB
/
settings.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//All the settings for the game
const settings = {
width: 800, //width of the canvas
height: 360, //height of the canvas
startingPoint: 180, //the x coordinate of the very first pipe that will spawn
birdPosition: 80, //x coordinate of birds
birdSize: 25, //the size of each bird
gravity: 0.8, //the gravity of the world
pipeSpacing: 125, //space beetween top and bottom of pipe
pipeSize: 80, //the size of each pipe
worldSpeed: 3, //the speed at which each pipe advances in the world
spaceBetweenPipes: 375,//space between two different pipes
popNum: 50, //number of NN running simultaneusly AKA how many birdz
}
//Options for blank neural network (might consider adding to the settings object)
const options = {
inputs: 5, //number of inputs nodes
outputs: ['up', 'down'], //two output nodes, see documentation about ouput label for more details
task: 'classification', //standard model type for FFW NN
noTraining: true //no dataset given, GAs are unsupervised methods
}