Warsim is a game I made in 2005, written in PHP it simulated top down grid based space ship combat for the Star Wars Combine (http://www.swcombine.com/).
I don't recommend running it as it's probably full of holes, but its fun to look back at how bad my code once was!