Skip to content

Instantly share code, notes, and snippets.

@ssabo
ssabo / example_theme.yaml
Last active February 7, 2021 22:25
Warmahordes theme representation in YAML
###
# This is a first draft at theme force representation in YAML files
# This should be compatible with the proposed model representations
# from https://gist.github.com/moisesguimaraes/dc80cb5ab87e8e6333cd28b543d0bd34
---
# name of the theme force
# Note: I think that unthemed should just be a very vanilla theme with the filters for
# that faction's models and merc/minions models that work for it
name: Vengence of Dhunia
@ssabo
ssabo / signs_and_portents.py
Created November 3, 2019 04:29
Calculate percentage to roll a number while signs and portents is up
d6_x3_count = {}
d6_sp_count = {}
total_rolls = 0
for first in range(1,7):
for second in range(1,7):
for third in range(1,7):
sum = first + second + third
cur = d6_x3_count.get(sum, 0)