Programming newfag here, using Python 2.7 and libtcod 1.5.1
what in the fuck is wrong with my code, i can't for the life of me understand what's wrong
http://pastebin.com/phuML5Ej
i'm making a RogueLike, sorry for not specifying
>>281106
Well can you at least post what error you're getting? I can't be bothered to install 2.7 (using 3.x since I can remember).
>>281126
Not sure, it won't say. I ran it with the command prompt and it just goes to the next line and blinks.
>>281106
Your core loop doesn't call handle_keys and doesn't in fact do anything other than print a character over and over.
>>281132
How do I fix that, exactly?
>>281145
It's your program. As far as we know it might be supposed to be declaring a function that never gets called, then spinning in a loop that does nothing.
Perhaps you should work through an introductory book on Python (or procedural languages in general), then come back to your project once you're a bit more familiar with programming?
What you're trying to do would seem to be an ideal fit for OO, but you don't seem to be using OO techniques at all; maybe read a good book on OO as well.
Head-first Java and Head-first Design Patterns is a really good introduction to procedural and OO languages. Yes, you have to use Java, but it'll build a solid foundation for other languages, both higher-level languages like Python, and lower-level languages like C++. Once you know a programming paradigm, it's easy to use any language from that paradigm; almost all the "X language is better than Y language" shitposting you see is produced by people who only know one language, don't understand the underlying paradigms, usually aren't formally trained, and insist that their language is the very best there is because they haven't used anything else, haven't learned the underlying skills, and aren't actually capable of using anything else. Don't be that guy. Learn to learn languages.
Given the scale of what you're doing, you'll do way better if you learn all this stuff first then apply what you've learned to your big project than if you learn as you go and end up producing a whole pile of unmaintainable spaghetti and having to throw it out and start over.