Code

Software I have developed (or half developed) and released into the wild. This page is being fleshed out with content, thanks for your patience.

Color.js

This implements a fairly simple Color API for use in javascript applications. Will automatically convert between RGB and HSV as needed. Each operation returns a new object.

More details, documentation and small examples.

Download the latest version.

Undermined

Undermined is an unfinished but playable and mostly attractive minesweeper game for Apple’s Dashboard. Download tarball

Die Expressions

Beta

A small python module that implements a dice rolling engine for use in games and gaming tools. Download python module

Internally a DieExpression object parses the expression string into a stack machine that can do basic arithmatic (including parenthesis and correct precidences), and knows about the ‘d’ operator for dice notation. Both left unary and binary dice are supported.

  • Left Unary Die is treated as an implicit D6, eg 3d is equivalent to 3d6, useful for GURPS for instance.
  • Binary DieThis allows the specification of both number to roll, and sides, eg 3d6, 2d10

Example usage:

    import die_exp

    # one off roll
    result = die_exp.roll(‘3d6+3’) 
    
    # create a reuseable expression.
    threeD6 = die_exp.DieExpression(‘3d6’)
    result = threeD6.roll()                   # result in range(3.0, 18.0)
See Also: Discussion page.

Markdown-Once

This is an older piece of PHP for Wordpress 1.5 that I no longer provide or support.