Skip to content

Instantly share code, notes, and snippets.

View hackingmath's full-sized avatar

Peter Farrell hackingmath

View GitHub Profile
# -*- coding: utf-8 -*-
"""
Created on Sat Nov 01 19:39:44 2014
@author: Peter Farrell
Simulation of world, navigating by arrow buttons!
"""
#from future import __division__
from visual import *
import random
//Bees and Bombs
//Sept. 26, 2018
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
@hackingmath
hackingmath / numoku_solver.py
Last active September 17, 2019 11:21
Numoku Solver working in Python, not in Rust :(
'''From 1to9puzzle Twitter post
https://twitter.com/1to9puzzle/status/1162035008749445120
August 15, 2019'''
import copy
import time
import random
starttime = time.time()
/* Copy of Bees and Bombs' sketch
https://twitter.com/beesandbombs/status/881857295008882689
*/
var b = 0; //counter for rotation
var sz = 500; //size of triangle
var linelist = [];
var side = 1; //side that's being drawn
function setup(){
createCanvas(600,600);
@hackingmath
hackingmath / script.js
Created April 8, 2020 19:52
Wandering Astroid
/* Copy of Bees and Bombs' sketch
https://twitter.com/beesandbombs/status/881857295008882689
*/
var b = 0; //counter for rotation
var sz = 500; //size of triangle
var linelist = [];
var side = 1; //side that's being drawn
function setup(){
createCanvas(600,600);