From 3c8e1f083dbd2fda14cb0f7caa76caa0a3db7f4c Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Mon, 17 Oct 2022 19:24:00 -0700 Subject: [PATCH] Change square layout probabilities --- src/services/Layout.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/Layout.ts b/src/services/Layout.ts index 47f2c577..23bfcee0 100644 --- a/src/services/Layout.ts +++ b/src/services/Layout.ts @@ -111,7 +111,7 @@ export function getLayout( (numLeft === 0 || numLeft >= opts.numCols); // Full width breakout - if (canBreakout && rand() < (input.length > 0 ? 0.2 : 0.1)) { + if (canBreakout && rand() < (input.length > 0 ? 0.25 : 0.1)) { matrix[row][col] |= FLAG_BREAKOUT; for (let i = 1; i < opts.numCols; i++) { matrix[row][i] |= FLAG_USED; @@ -129,7 +129,7 @@ export function getLayout( } // Use 4 box - else if (canUse4 && rand() < ((col % 2) ? 0.67 : 0.4)) { + else if (canUse4 && rand() < 0.35) { matrix[row][col] |= FLAG_USE4; matrix[row+1][col] |= FLAG_USED; matrix[row][col+1] |= FLAG_USED;