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 b60e5a3 commit 05187b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/game/model/AreaBuilderChallengeFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,6 @@ define( require => {
function generateBuildAreaChallenge() {

// Create a unique challenge
let challenge;
const width = random.nextIntBetween( 2, AreaBuilderGameModel.SHAPE_BOARD_UNIT_WIDTH - 2 );
let height = 0;
while ( width * height < 8 || width * height > 36 ) {
Expand All @@ -548,7 +547,7 @@ define( require => {
height,
color
);
challenge = AreaBuilderGameChallenge.createBuildAreaChallenge( width * height, createBasicRectanglesShapeKit( color ), exampleSolution );
const challenge = AreaBuilderGameChallenge.createBuildAreaChallenge( width * height, createBasicRectanglesShapeKit( color ), exampleSolution );
return challenge;
}

Expand Down

0 comments on commit 05187b8

Please sign in to comment.