You can get a copy of the Hellcore server and database
here, the programming environment is built into the game and code is compiled at runtime. The Hellcore has some pretty neat things like $api.actor which make life easier but don't expect to get anywhere if you don't know C.
"dwarf fortress"
So you want to make a game with total stuff graphics?
Someone's clearly not a fan of roguelikes.
The usage of ASCII/ANSI in dwarf fortress is deliberate to a degree; one of the reasons it can be so in-depth is because resources that would be used for graphics can be devoted to gameplay calculations instead. You don't need GPU-melting visuals in order to make a good game, it's just one of many factors.