ising models are a statistical thermodynamics toy system that physicists love to play about with. I've done all the fiddly graphics work for an Ising model so you can see it on the screen. You want to play with the file ising.c to make the model do various things other than just respond to temperature. If you can see the results, it's much easier to spot problems with code / interesting phenomena.