Friday, May 6, 2011

wumpus

Copperbox revision 2375.

I've re-enabled pivot paths in Wumpus-Drawing and added some comments and deleted some commented out code in Wumpus-Basic. Also, I think I've found a more satisfying idiom for encoding path moves:

lines [go_up 20, up_right 20, go_down 60]

This encodes the moves in vector constructors once, rather than encoding them each time in Displacements, Paths etc. I don't know why I didn't spot this sooner. The only downside is that some names ("up", "down") are too valuable to be taken this library, but other names are already long enough without a go_ prefix.

Blog Archive

About Me

My photo
Disambiguating biog as there are a few Stephen Tetley's in the world. I'm neither a cage fighter or yachtsman. I studied Fine Art in the nineties (foundation Bradford 1992, degree Cheltenham 1992 - 95) then Computing part-time at Leeds Met graduating in 2003. I'm the Stephen Tetley on Haskell Cafe and Stackoverflow.