smarterplanet:

Introducing CodeSpells (by Sarah Esper)

CodeSpells is a 3D video game designed to teach novice programmers how to program in Java. In this game, you are a wizard and your task is to learn how to read, write and cast spells (Java programs) in an interactive and fun way.