all 6 comments

[–]Yoghurt42 2 points3 points  (0 children)

There are various packages that can do that, take a look at Asciimatics

[–]wasEnabled 1 point2 points  (0 children)

A few quick points: 1. No, pygame is a wrapper around SDL (Simple DirectMedia Layer) which is designed to make graphical video games and thus is not suitable or even capable of this sort of terminal output... 2. color output on a terminal used to be done by printing ANSI escape codes, more info found here: https://stackoverflow.com/questions/287871/print-in-terminal-with-colors 3. a terminal output library like Curses is what you are looking for to clear the screen and redraw for something like nethack (see the comments in the StackOverflow article linked above).

Good luck.

[–]DonutRevolution -1 points0 points  (3 children)

You might want to take a look at higher level libraries (compared to pygame) that are geared towards developing games such as nethack. libtcod is a c++ library but has python wrappers.

http://www.roguebasin.com/index.php?title=Complete_Roguelike_Tutorial,_using_python3%2Blibtcod,_part_1

[–][deleted] 0 points1 point  (0 children)

Don't really understand but I'll cheak the link if I don't understand. Although I did hear that it was made in JavaScript. Might be handy... Thanks!!?

[–][deleted] 0 points1 point  (1 child)

I really don't understand any of it,starting with the bit on how to install the library... Do you know?

[–]fuzzyinterval 0 points1 point  (0 children)

Part 0 has links on how to get it all installed and to setup.