This is an amazing game. If you are interested in it's structure, there is a good chapter on it here: http://aosabook.org/en/wesnoth.html
A similar game hooked me on programming at an early age. It's called Graal and you had to pay to contribute. I wish I had found this game instead.