Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Sep 20, 2019
1 parent 6217dad commit 85d6f3a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions js/common/model/LevelModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ define( require => {
selectUnusedMultiplierPair: function() {
const availableMultiplicands = [];
const availableMultipliers = [];
let multiplicand;
let multiplier;

// find available multiplicand rows with at least one unused cell
this.cellUsedStates.forEach( function( multipliers, index ) {
Expand All @@ -102,7 +100,7 @@ define( require => {
}

// set multiplicand
multiplicand = phet.joist.random.shuffle( availableMultiplicands )[ 0 ];
const multiplicand = phet.joist.random.shuffle( availableMultiplicands )[ 0 ];

// find available multipliers
this.cellUsedStates[ multiplicand - 1 ].forEach( function( isProblemAnswered, index ) {
Expand All @@ -112,7 +110,7 @@ define( require => {
} );

// set multiplier
multiplier = phet.joist.random.sample( availableMultipliers );
const multiplier = phet.joist.random.sample( availableMultipliers );

return {
multiplicand: multiplicand,
Expand Down

0 comments on commit 85d6f3a

Please sign in to comment.