This classic text adventure game (with graphics) was "designed to use and stimulate your mathematical imagination".
Enjoying L: A Mathemagical Adventure?