I’ve been meaning to make a “pretty” implementation of an Xscreensaver hack for ages. It’s called “demon”, and it features a random grid of colored cells that end up in swirling color patterns. I finally got around to trying it out, and used it as an opportunity to play with Mac OS X’s graphics APIs.… Continue reading Demon
In order to get Dion off my back, I am posting this screenshot of the next mini-project I’ve been working on. It’s an implementation of the cellular automaton from the xscreensaver module “demon”. A full writeup and code will follow.
Dice Rolling 2
In the last piece I wrote, I was describing how I was trying to make a tool to efficiently calculate the probability of rolling or exceeding a particular sum on a number of dice. I had gotten as far as a recursive solution which allowed me to roll any number of `s`-sided dice, but which… Continue reading Dice Rolling 2
To start with, I am going to retell the tale of some dice rolling statistics I spent time calculating circa October 2006. My demonstration code is in Python, because it’s fairly legible even if you aren’t familiar with it. ### Intro I like to play games, and playing games often requires one to roll dice.… Continue reading Dice Rolling