Skip to content

Commit

Permalink
logic change
Browse files Browse the repository at this point in the history
  • Loading branch information
kimorkim committed Sep 18, 2016
1 parent d8c9e9a commit 2ae800e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions dist/sudokumaker.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ return /******/ (function(modules) { // webpackBootstrap
});

if (this.createType === _constants.CreateTypes.RANDOM) {
var end = 40;
var start = 25;
// max show number count
var end = 30;
// min show number count
var start = 19;
var pick_cnt = Math.floor(Math.random() * (end - start + 1) + start);
var randomGamePattern = objectClone(gameData);
var value = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59', '60', '61', '62', '63', '64', '65', '66', '67', '68', '69', '70', '71', '72', '73', '74', '75', '76', '77', '78', '79', '80'];
Expand Down
2 changes: 1 addition & 1 deletion dist/sudokumaker.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ class sudokuMaker {
});

if(this.createType === CreateTypes.RANDOM) {
const end = 40;
const start = 25;
// max show number count
const end = 30;
// min show number count
const start = 19;
const pick_cnt = Math.floor((Math.random() * (end-start+1)) + start);
let randomGamePattern = objectClone(gameData);
let value = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59', '60', '61', '62', '63', '64', '65', '66', '67', '68', '69', '70', '71', '72', '73', '74', '75', '76', '77', '78', '79', '80']
Expand Down

0 comments on commit 2ae800e

Please sign in to comment.