Update gen-maze.ts

This commit is contained in:
syuilo 2019-05-11 14:49:50 +09:00
parent e7419c0100
commit 7bba6ec4a9
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -83,9 +83,9 @@ export function genMaze(seed, complexity?) {
let mazeSize; let mazeSize;
if (complexity) { if (complexity) {
if (complexity === 'veryEasy') mazeSize = 3 + rand(3); if (complexity === 'veryEasy') mazeSize = 3 + rand(3);
if (complexity === 'easy') mazeSize = 10 + rand(12); if (complexity === 'easy') mazeSize = 8 + rand(8);
if (complexity === 'hard') mazeSize = 20 + rand(15); if (complexity === 'hard') mazeSize = 22 + rand(13);
if (complexity === 'veryHard') mazeSize = 35 + rand(15); if (complexity === 'veryHard') mazeSize = 40 + rand(20);
if (complexity === 'ai') mazeSize = 100; if (complexity === 'ai') mazeSize = 100;
} else { } else {
mazeSize = 11 + rand(21); mazeSize = 11 + rand(21);