diff --git a/src/algo.ts b/src/algo.ts index 5a2a76e..b4b5749 100644 --- a/src/algo.ts +++ b/src/algo.ts @@ -5,7 +5,7 @@ import { shuffle } from './utils' type HistoryType = { a: number; b: number; op: OperatorType }[] export function isHardEnough(num: number): boolean { - return num % 100 > 0 + return num % 100 > 0 && num % 50 > 0 } export function isOperationResultValid(op: Operation): boolean { diff --git a/src/composables/sharing.ts b/src/composables/sharing.ts index e7f71ed..79a3489 100644 --- a/src/composables/sharing.ts +++ b/src/composables/sharing.ts @@ -12,14 +12,18 @@ function getSharingText(): string { const endResult = operations[operations.length - 1].result?.value ?? 0 const success = result.value === endResult - const allSymbols = ['🄰', '🄱', '🄲', '🄳', '🄴', '🄵', '🄶', '🄷', '🄸', '🄹'] + // const allSymbols = ['𝙰', '𝙱', '𝙲', '𝙳', '𝙴', '𝙵', '𝚅', '𝚆', '𝚇', '𝚈', '𝚉'] + const abcSymbols = ['𝚊', '𝚋', '𝚌', '𝚍', '𝚎', '𝚏'] + const xyzSymbols = ['𝚟', '𝚠', '𝚡', '𝚢', '𝚣'].slice(-(operations.length - 1)) + // const xyzSymbols = ["𝚊'", "𝚋'", "𝚌'", "𝚍'", "𝚎'", "𝚏'"] + // const xyzSymbols = ['𝚅', '𝚆', '𝚇', '𝚈', '𝚉'] const squares = ['🟦', '🟩', '🟨', '🟧', '🟥'] const lines: string[] = [] for (const op of operations) { - op.left!.symbol = op.left!.symbol ?? allSymbols.shift() - op.right!.symbol = op.right!.symbol ?? allSymbols.shift() - op.result!.symbol = op.result!.symbol ?? allSymbols.shift() + op.left!.symbol = op.left!.symbol ?? abcSymbols.shift() + op.right!.symbol = op.right!.symbol ?? abcSymbols.shift() + op.result!.symbol = op.result!.symbol ?? xyzSymbols.shift() let s = '' switch (op.operator) { @@ -43,7 +47,9 @@ function getSharingText(): string { ) } - return `N0mbers #${numberOfGamesSinceStart()} - ${isHardMode.value ? 'Advanced' : 'Normal'} + return `N0mbers #${numberOfGamesSinceStart()} - ${ + isHardMode.value ? 'Advanced' : 'Normal' + } ${lines.join('\n')} ${success ? '✔' : '❌'} https://n0mbers.scambier.xyz` } diff --git a/src/globals.ts b/src/globals.ts index 1569508..5da0e03 100644 --- a/src/globals.ts +++ b/src/globals.ts @@ -7,18 +7,10 @@ export const LSK_STATS = 'n0_stats' export const operators = ['+', '-', '*', '/'] as const -export const normalPools = { - 1: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 25, 50], - 2: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], - 3: [5, 5, 5, 5, 5, 2, 2, 2, 2, 2], - 4: [1, 1, 2, 3, 5, 8, 13, 21], -} as const - -export const advancedPools = { +export const pools = { 1: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 25, 50, 75, 100], 2: [2, 2, 3, 3, 5, 5, 7, 7, 11, 13, 17, 19, 23], - 3: [5, 5, 5, 5, 5, 2, 2, 2, 2, 2], - 4: [1, 1, 2, 3, 5, 8, 13, 21], + 3: [1, 1, 2, 3, 5, 8, 13, 21], } as const export enum GameStateType { diff --git a/src/views/GameView.vue b/src/views/GameView.vue index 5a2917e..e443e7d 100644 --- a/src/views/GameView.vue +++ b/src/views/GameView.vue @@ -1,4 +1,3 @@ -advancedPools