From 45aee2946c389fdcd9e85eff3e436e73bd9bac7e Mon Sep 17 00:00:00 2001 From: Shriansh Chari <30420527+shrianshChari@users.noreply.github.com> Date: Thu, 29 Aug 2024 14:16:25 -0400 Subject: [PATCH] Add comments --- stats/src/classifier.ts | 1 + stats/src/test/classifier.test.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/stats/src/classifier.ts b/stats/src/classifier.ts index daefc20..7687fc9 100644 --- a/stats/src/classifier.ts +++ b/stats/src/classifier.ts @@ -533,6 +533,7 @@ export function computeGreaterSetupMoves(gen: Generation) { ((m.boosts.atk >= 1 && m.boosts.spe && m.boosts.spe >= 1) || m.boosts.atk >= 2)) || (m.boosts.spa && ((m.boosts.spa >= 1 && m.boosts.spe && m.boosts.spe >= 1) || m.boosts.spa >= 2)) + // Shell Smash is intentionally left off this list ) && m.id !== 'shellsmash').map(m => m.id); // Attacking moves that have a high Base Power (80 or above) and have a high // likelihood of boosting (at least 50%) diff --git a/stats/src/test/classifier.test.ts b/stats/src/test/classifier.test.ts index 631224a..edd4315 100644 --- a/stats/src/test/classifier.test.ts +++ b/stats/src/test/classifier.test.ts @@ -5,6 +5,9 @@ import * as classifier from '../classifier'; const GEN = new Generations(Dex).get(6); +/** + * Returns set of items in set `a` that are not in set `b`. + */ function getDifference(a: Set, b: Set) { return new Set( [...a].filter((value) => !b.has(value))