programming
I have written a bunch of code in various languages, mostly for fun. Below is some of the more interesting code. It is intended for people who know what they are doing. As such, there is no documentation, and usage might be non-obvious. None of this is regularly maintained, and none of it is guaranteed to do what it is intended to do. This code is totally free for any non-commercial use; contact me for anything else.
- kgtd - an in-progress tower defense game, with a focus on code quality and simplicity
- tetris - an Java applet that lets you play Tetris, source is here. Known bugs include a bad loss detector and occasionally pieces leaving a square behind. I would like to hear of other bugs.
- truchetdraw.c - a program to produce truchet patterns, randomly or interactively
- cps.c - a program to compute and print the factorial of the arguments, written in continuation-passing style. As such, none of the functions (not counting printf and atoi) ever return. CPS is gross, especially in a non-functional language like C. The recursive factorial seems to crash the program with arguments that are too large. This is only known to compile with GCC.
- circle.c - draws an oval or a circle, slowly, using an unusual algorithm
- convolve.c - a small multithreaded (and unoptimized) program to convolve two images