Skip to content

Instantly share code, notes, and snippets.

View thquinn's full-sized avatar

Tom Quinn thquinn

View GitHub Profile
@thquinn
thquinn / waveforms.js
Created July 15, 2018 16:41
Waveform visualizer for the Math Square exhibit at MoMath
/* MoMath Math Square Behavior
*
* Title: Waveforms
* Description: stand on the knobs to combine simple waveforms into something
* more complex, stand on the wave to distort it
* Framework: P5
* Author: Tom Quinn <thquinn.github.io>
* Created: 2017-07
* Status: works
*/
@thquinn
thquinn / asterangles.js
Created July 15, 2018 16:38
Cooperative asteroids for the Math Square exhibit at MoMath
/* MoMath Math Square Behavior
*
* Title: Asterangles
* Description: cooperative asteroids, form an equilateral triangle with an
* asteroid and another player to fire
* Framework: P5
* Author: Tom Quinn <thquinn.github.io>
* Created: 2018-07
* Status: works
*/
@thquinn
thquinn / newmtgwords.txt
Last active May 22, 2020 07:26
A list of words that haven't appeared in the name of a Magic: the Gathering card. Ordered by descending frequency.
they
been
said
could
these
also
years
yeah
such
must
@thquinn
thquinn / magic.py
Last active December 12, 2019 21:41
A crappy "solver" for Magic: the Gathering combat. Update the declarations at the bottom and run.
#!/usr/bin/python
import sys
import itertools
POWER_EVAL = .6
TOUGHNESS_EVAL = .4
DOUBLE_STRIKE_MULT = 1.5
DEATHTOUCH_EVAL = 1
FLYING_EVAL = 1