Added if statement to test function, checking if bonus2<bonus1. Added alerts AND console.logs to test.
Add alert/console.log warning if number of rows in climateArray aren't sufficient for maxturn rounds
TONS of changes. edited if-then statements running optimalChoice function to incorporate possibility of no indifferentTurn. simplified calculateOptimalPlayPoints although now there is a new bug, WIP
Removed game.discrete.indifferent = i+1 and replaced with =i. Then game.bonusTwoTotal was not NaN.
Added parameters to calculateOptimalPlayPoints to take turn and max arguments, so that I could variably set turn to indfferentTurn or maxturn-1. (That is as far as optimalChoice1 calculates. If there is no indifferentTurn, then optimalChoice1 is the same throughout the entire game.)
Tested with 35 turns. Works. Bonus2>Bonus1.