Commented out all code pertaining to server, including creatingGameDialog, to work on the merger of discrete and continuous
Moved indifferencePoint and indifferentTurn variables into discrete game object for easy viewing and cross-function accessibility.
Changed game.indifferencePoint to game.discrete.indifferencePoint
Moved indifference calculation into checkIndifferencePoint function, returns value of indifferencePoint to game object key
Changed all indifferentTurn variables to refer to object
Added console.log commands to find source of NaN in code. Threshold array is [600, NaN, NaN...]
Minor edits to weather creation functions for readability. Discovered the NaN problem. climateArray is currently in BoxMuller format, with mean and std dev. Must use alternative climateArray array from discrete version.
Moved climateArray population into initialization functions, create separate climateArray variables in discrete and continuous objects. Now each climateArray is populated by a different initialization function. HOWEVER, this is problematic, because I want Fran to be able to change the values of the arrays manually, and the manual entry is no longer located in the game object
Discrete game set-up now works -- game.gameWeather correctly created. YES
WIP adding .continuous to variables now inside continuous game object
Added .continuous to maxScore calculation, calculation now works
Add .continuous to plotA and plotB creation
Enter bonus_one and bonus_two code using gameVersionObject to choose which values of bonuses to use. Create game.continuous variables for manually-determined bonuses for cont version.
Moved bonus payments in dollars into main .game object. WIP creating bonus threshold vars for each .discrete and .continuous game versions that can be used to populate opening dialogs
Changed name of totalRandomPoints and totalOptimalPoints to firstBonusThreshold and secondBonusThreshold to match .continuous variables, consolidated all code to populate these spans into top of initialzation function
Re-moved populating bonus spans in opening dialogs to separate init functions, this time using correct first and second bonus threshold calcs
Added bonusHeight function to continuous init section, using threshold values and bonuses from game.cont object.
Altered bonusHeight function to return game.cont.bonusOneTotal and game.cont.bonusTwoTotal
Changed all gameRoots refs to game.continuous.gameRoots