Skip to content

Instantly share code, notes, and snippets.

View scheibo's full-sized avatar

Kirk Scheibelhut scheibo

View GitHub Profile
const fs = require('fs');
const words = [];
for (const line of fs.readFileSync(process.argv[2], 'utf8').trim().split('\n')) {
const word = line.trim();
words[word.length - 2] = words[word.length - 2] || [];
words[word.length - 2].push(word);
}
for (let n = 5; n <= 5; n++) {
This file has been truncated, but you can view the full file.
(AA|AB)_ AAS/ABS
(AA|AC)_ AAH/ACH
(AA|AC)___ AAHED/ACHED
(AA|AC)____ AAHING/ACHING
(AA|AD)_ AAS/ADS
(AA|AG)_ AAS/AGS
(AA|AH)_ AAS/AHS
(AA|AI)_ AAL/AIL AAS/AIS
(AA|AI)__ AALS/AILS
(AA|AL)_ AAL/ALL AAS/ALS
const fs = require('fs');
const spreads = {};
const IV = 30;
const POWER = 70;
const HP = {
Bug: {ivs: {atk: 30, def: 30, spd: 30}, dvs: {atk: 13, def: 13}},
Dark: {ivs: {}, dvs: {}},
@scheibo
scheibo / PT
Last active May 7, 2024 00:58
PT
SIDE LYING TWIST
SUPINE WINDOW WIPERS
HIP MOBILITY DRILL
HALF KNEELING WALL TRUNK ROTATION
SINGLE LEG SIT-BACKS
QUICK-REBOUNDING CALF RAISE
ALTERNATE FORWARD LUNGE
SIDE LUNGE
STAR BALANCE TAP
import type {Battle, Side, Pokemon} from ".";
function encodeBattle(battle: Battle) {
const buf: any[] = [];
for (const side of battle.sides) {
encodeSide(side, buf);
}
buf.push(battle.turn);
buf.push(battle.lastDamage);
% W L T
0 49663 50117 220
1 49170 50643 187
2 48757 51056 187
3 48208 51580 212
4 48027 51772 201
5 47450 52344 206
6 46766 53052 182
7 46154 53657 189
8 45990 53827 183
import {Generations} from '@pkmn/data';
import {TeamGenerators} from '@pkmn/randoms';
import {Battle, Dex, ID, PRNG, PRNGSeed, Teams, extractChannelMessages} from '@pkmn/sim';
import {RandomPlayer} from './random-player';
Teams.setGeneratorFactory(TeamGenerators as any);
const gens = new Generations(Dex as any);
const gen = gens.get(process.argv[2] ?? 1);
sProtectSuccessRates
FF FF
FF 7F
FF 3F
FF 1F
sMovesForbiddenToCopy
76 00
@scheibo
scheibo / login.js
Last active January 26, 2024 03:01
#!/usr/bin/env node
'use strict';
// !!!!!!!!!!!!!!!!!!!!!
// ! ADD ACCOUNTS HERE !
// !!!!!!!!!!!!!!!!!!!!!
const ACCOUNTS = {
// 'username': 'password',
};
https://www.smogon.com/forums/posts/7387215/
"tvalks - tvalks": kangaskhan / amoonguss / landorustherian / sylveon / thundurus / volcanion (https://pokepast.es/3fc46c821a0d91ba)
"Hyper Off DeoSharp + M Kangas (Vig Sigs) - Hyper Off DeoSharp + M Kangas (Vig Sigs)": kangaskhan / bisharp / deoxysattack / ferrothorn / keldeo / talonflame (https://pokepast.es/503edddac332e900)
"Whimsicott Offense - Whimsicott Offense": gengar / landorustherian / terrakion / thundurus / volcanion / whimsicott (https://pokepast.es/6ad59814a1a9c29e)
"Sample Version MGar + Conk - Sample Version MGar + Conk": gengar / conkeldurr / ferrothorn / landorustherian / thundurus / volcanion (https://pokepast.es/0f4f5d81c9be04ea)
"XY Mence Ferro Sand - XY Mence Ferro Sand": ferrothorn / cresselia / excadrill / salamence / tyranitar / volcanion (https://pokepast.es/faba5ead7e0df1d2)
"Sample Rain - Sample Rain": politoed / kingdra / ludicolo / swampert / talonflame / thundurus (https://pokepast.es/83cd068200ed836a)
"Sample MGarde + 2 Redirects -