Sackville-West Clan Wiki/ tech/ A little fun with tcltk

So, Melissa McDirmid, my linear algebra teacher, came to me with a problem. She wanted to use the game xlightoff in class to demonstrate how linear algebra could be used to solve the game. Okay cool. But she's a windows user, not into upgrading to linux (certainly not for one demo) and I didn't want to mess around with installing an X server on her machine.

There are other versions of the game out there, but she wanted a standalone version with the randomization of the xlightoff version. This version, by Bruce Ediger, is written in tcl/tk, making it nicely cross-platform and pretty easy to grok.

A few tweaks and I've got a version that randomizes the board, and also allows us to work on a 3x3 version... much nicer for our in-class problem.