Skip to content

Instantly share code, notes, and snippets.

View Spigushe's full-sized avatar

Martin Cuchet Spigushe

  • Nantes, France
View GitHub Profile

How Many Lands

Explication du code Python disponible ci-après. Un adaptation de ce code est disponible dans le fichier HTML suivant où il est possible d'étudier directement une combinaison.

Liste des paramètres globaux

  • LANDS_IN_DECK par défaut à 39 mais peut être modifié à la demande.
  • SIMULATIONS par défaut à 100.000 car cela coûte moins de 10 secondes par combinaison à étudier.
  • LANDS_RANGE par défaut entre 15 et LANDS_IN_DECK + 1 correspond à la fourchette de "bons" lands étudiés
@Spigushe
Spigushe / how_many_lands.py
Created February 15, 2025 14:59
Based on Frank Karsten's 2022 update without mdfc introduced with Ikoria and later edition. For this script, just treat them as land or spell, no consideration in between will done in this script.
import time
from typing import Literal
import numpy as np
import pandas as pd
from scipy.stats import norm
LANDS_IN_DECK = 39 # Change the quantity here
SIMULATIONS = 100_000 # Change the quantity here
LANDS_RANGE = range(10, LANDS_IN_DECK + 1)
@Spigushe
Spigushe / how_many_lands.py
Created February 14, 2025 17:03
How many lands for each mana cost?
import math
import pandas as pd
DRAW = False
SIZE = 99
LANDS = [10 + i for i in range(40 + 1)]
COSTS = [
"C",
"1C",
"CC",
"""Rename images downloaded from Moxfield."""
import sys
from pathlib import Path
if __name__ == "__main__":
folder = Path(sys.argv[1])
if not folder.exists():
print(f"{folder} does not exist")
sys.exit(1)
@Spigushe
Spigushe / F.A.C.T 9.md
Last active May 11, 2024 17:08
machine learning - {'mse': 0.6542272085053707, 'r2': 0.7019709853181131} - Sharing to confirm results
@Spigushe
Spigushe / macrotype_modelization.ipynb
Created May 10, 2024 09:31
Macrotype_modelization.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Spigushe
Spigushe / macrotype_modelization.ipynb
Created April 17, 2024 15:28
macrotype_modelization.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Aragorn, King of Gondor

Matchup table

Against Spigushe Zohoz Total  Comment
Aragorn, King of Gondor 4 ✅ 3 ✅ / 5 ❌ 7 ✅ / 5 ❌  
Atraxa, Grand Unifier 2 ✅ / 4 ❌ 2 ✅ / 4 ❌  
Cormela, Glamour Thief 2 ✅ 2 ✅  
Errant and Giada    2 ✅ / 1 ❌ 2 ✅ / 1 ❌
<!DOCTYPE html>
<html lang="fr">
<head>
<!-- Data Crawling -->
<meta name="robots" content="all">
<!-- OG handling -->
<meta property="og:title" content="Current Banlist - Barrin's Data" />
<meta name="description" content="Strategical Resources for Duel Commande (site mainly in French)">
<meta property="og:description"
document.querySelectorAll('div.barrins-codex-banner').forEach(function(banner) {
// do something with each banner element
banner.style.position = "relative";
banner.style.textAlign = "center";
banner.style.color = "black";
banner.classList.add("col-12");
// Barrin's image
var barrin = document.createElement("img");
barrin.src = "https://barrins-codex.org/static/img/banner.jpg";