This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
import itertools | |
POWER_EVAL = .6 | |
TOUGHNESS_EVAL = .4 | |
DOUBLE_STRIKE_MULT = 1.5 | |
DEATHTOUCH_EVAL = 1 | |
FLYING_EVAL = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
they | |
been | |
said | |
could | |
these | |
also | |
years | |
yeah | |
such | |
must |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace KabufudaSolver { | |
class Program { | |
static void Main(string[] args) { | |
Board board = new Board(Console.ReadLine(), int.Parse(Console.ReadLine())); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np, PIL | |
from PIL import Image | |
from queue import Queue | |
def within(board, coor): | |
return coor[0] >= 0 and coor[1] >= 0 and coor[0] < board.shape[0] and coor[1] < board.shape[1] | |
def get_neighbors(coor): | |
return [(coor[0] - 1, coor[1]), (coor[0] + 1, coor[1]), (coor[0], coor[1] - 1), (coor[0], coor[1] + 1)] | |
def next_diamond_coor(coor): | |
# Center |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Runs simplified goldfish games of Penny Dreadful Near-Death Experience Combo. Simplifications include: | |
// - no interaction from the opponent, obviously | |
// - doesn't simulate cards besides combo pieces and lands | |
// - no maximum hand size | |
// - Lost Auramancers doesn't actually remove NDE from the deck | |
// - generally poor decision making | |
// - lots of other stuff (see inline comments) | |
using System; | |
using System.Collections.Generic; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Net; | |
using System.Text; | |
using System.Threading; | |
using System.Xml; | |
namespace Santaman | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Runtime.InteropServices; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using ManagedWinapi; // this can be found here: http://mwinapi.sourceforge.net/ | |
using System.Windows.Forms; | |
using System.Drawing; | |
using Octokit; // this is from NuGet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# An implementation of Dr. Carla Savage's algorithm described in her | |
# 1989 paper "Gray code sequences of partitions" | |
# https://www.sciencedirect.com/science/article/abs/pii/0196677489900072 | |
# Referred to corrections made in a lecture by Dr. Sriram Pemmaraju | |
# https://homepage.cs.uiowa.edu/~sriram/196/fall01/lecture7.pdf | |
# Implemented by Tom Quinn (https://thquinn.github.io/) | |
# I've made my own corrections, see the comments. |
OlderNewer