Skip to content

Instantly share code, notes, and snippets.

View sebastientromp's full-sized avatar

Sébastien Tromp sebastientromp

View GitHub Profile
# Into the Mines
Un dragon a semé la destruction dans une colonie de nains qui farmaient et creusaient des galeries tranquillement. Les survivants ont été contraints à l'exil, et cherchent une nouvelle terre d'accueil dans les montagnes, à l'abri des colères du ciel
# Background
* Les nains fuient une menace aérienne. Ils veulent se cacher à l'intérieur, donc rien dans les champs
* Un score de "peur" ? Si on arrive à le faire descendre suffisamment bas, possible d'aller cultiver les champs pour un rendement de bouffe supérieur ?
* Ce sont des tribus / familles différentes qui fuient ensemble. Chacune avait sa propre ferme / caverne, et ils sont à présent regroupés.
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Random;
import java.util.Scanner;
import java.util.Set;
/**
class Cache {
static final int POINT_POOL_SIZE = 1000000;
static final int ACTION_POOL_SIZE = 200000;
static final int WIZARD_POOL_SIZE = 50000;
static final int SNAFFLE_POOL_SIZE = 100000;
static final int BLUDGER_POOL_SIZE = 20000;
static final int MAP_POINT_POOL_SIZE = 100000;
static final int GAME_STATE_POOL_SIZE = 100000;
static final Wizard[] wizardPool = new Wizard[WIZARD_POOL_SIZE];
import static java.lang.Math.abs;
import static java.lang.Math.round;
import static java.lang.Math.signum;
import static java.lang.Math.sqrt;
import java.io.ByteArrayInputStream;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Random;
@sebastientromp
sebastientromp / battlegrounds_minions_played_stats.csv
Created November 10, 2019 06:14
An extract of the number of times each minion whas playing in Battleground (10/11/2019)
cardId name count(*)
GIL_681 Nightmare Amalgam 1919
BOT_911 Annoy-o-Module 1332
BOT_312 Replicating Menace 1205
GVG_048 Metaltooth Leaper 1180
EX1_093 Defender of Argus 1152
GVG_055 Screwjank Clunker 936
DS1_070 Houndmaster 909
DAL_077 Toxfin 907
LOOT_013 Vulgar Homunculus 887
@sebastientromp
sebastientromp / gist:7201a36d3a865f9216307340594926e4
Last active November 19, 2019 01:26
Battlegrounds heroes by final rank average
Hero Name,Average rank
Millificent Manastorm,3.2881
Patchwerk,3.9066
A. F. Kay,3.9579
King Mukla,3.9656
"Yogg-Saron, Hope's End",4.0504
The Rat King,4.0583
The Curator,4.5355
Nefarian,4.556
Lord Jaraxxus,4.5629
@sebastientromp
sebastientromp / battlegrounds_stats.csv
Created November 23, 2019 15:42
Battlegrounds stats - 2019-11-23
Hero Card Hero Name Total Popularity Number of 1st Win % Number of Top 4 Top 4 % Average rank
TB_BaconShop_HERO_34 Patchwerk 90452 0.05134457951 13340 0.1474815372 58042 0.6416884093 3.8113
TB_BaconShop_HERO_12 The Rat King 105199 0.05971563282 19544 0.1857812337 63161 0.600395441 3.9363
TB_BaconShop_HERO_35 Yogg-Saron, Hope's End 92982 0.05278072007 16247 0.174732744 54918 0.5906304446 3.9663
TB_BaconShop_HERO_16 A. F. Kay 119230 0.06768025267 18706 0.1568900445 68481 0.5743604797 4.0949
TB_BaconShop_HERO_43 Brann Bronzebeard 120488 0.06839434944 20630 0.1712203705 69100 0.5735010955 4.0795
TB_BaconShop_HERO_42 Elise Starseeker 98947 0.05616671946 12957 0.1309488918 50943 0.5148513851 4.4202
TB_BaconShop_HERO_33 The Curator 111385 0.06322708164 15679 0.1407640167 56815 0.5100776586 4.4025
TB_BaconShop_HERO_37 Lord Jaraxxus 68983 0.03915781993 7831 0.1135207225 34957 0.5067480394 4.5476
TB_BaconShop_HERO_30 Nefarian 99020 0.05620815751 13253 0.1338416482 49751 0.5024338517 4.4807
@sebastientromp
sebastientromp / gist:911a5720158337832984c1414615b244
Created September 15, 2020 08:08
Alexstrazza BG discover options
Games are for patch >= 53261
{
"choices": {
"BGS_034": 8315, // Bronze Warden
"BGS_045": 9227, // Glyph Guardian
"BGS_067": 7924, // Drakonid Enforcer
"ICC_029": 7723, // Cobalt Scalebane
"BGS_036": 6708, // Razorgore, the Untamed
"BGS_069": 825, // Amalgadon
D 20:38:37.3261510 GameState.DebugPrintPower() - BLOCK_START BlockType=TRIGGER Entity=[entityName=Buddy Meter id=136 zone=PLAY zonePos=0 cardId=BG22_BuddyMeter player=8] EffectCardId=System.Collections.Generic.List`1[System.String] EffectIndex=1 Target=0 SubOption=-1 TriggerKeyword=TAG_NOT_SET
D 20:38:37.3261510 GameState.DebugPrintPower() - TAG_CHANGE Entity=[entityName=Buddy Meter id=136 zone=PLAY zonePos=0 cardId=BG22_BuddyMeter player=8] tag=TAG_SCRIPT_DATA_NUM_2 value=82
D 20:38:37.3261510 GameState.DebugPrintPower() - TAG_CHANGE Entity=[entityName=Buddy Meter id=136 zone=PLAY zonePos=0 cardId=BG22_BuddyMeter player=8] tag=TAG_SCRIPT_DATA_NUM_1 value=8
D 20:38:37.3261510 GameState.DebugPrintPower() - TAG_CHANGE Entity=[entityName=Xyrella id=94 zone=PLAY zonePos=0 cardId=BG20_HERO_101 player=8] tag=BACON_HERO_BUDDY_PROGRESS value=8
D 20:38:37.3261510 GameState.DebugPrintPower() - BLOCK_END
D 20:38:37.3261510 GameState.DebugPrintPower() - BLOCK_START BlockType=TRIGGER Entity=[enti
@sebastientromp
sebastientromp / card-buckets.json
Created February 21, 2022 15:54
List all cards found in each bucket in duels (casual + heroic)
[
{
"bucketName": "Iron and Steel",
"bucketClass": "warrior",
"cardNames": [
"Alley Armorsmith",
"Armored Goon",
"Armorsmith",
"Bash",
"Blastmaster Boom",