Live data from Hacker News

Python – Lightweight snake game running in the console

github.com

1–9 of 9 posts

Re: Python – Lightweight snake game running in the console

#7
post #5
post #3

Not working for me in OSX 10.10. Here is a PasteBin of the error I'm getting. http://pastebin.com/CicWMAc2

Try to use with maximised window - it's a bug that happens when trying to draw on a window that's too small

That worked perfectly for me, thanks!

Re: Python – Lightweight snake game running in the console

#9
post #5
post #3

Not working for me in OSX 10.10. Here is a PasteBin of the error I'm getting. http://pastebin.com/CicWMAc2

Try to use with maximised window - it's a bug that happens when trying to draw on a window that's too small

Regarding this, does anyone have tips on how best to do curses layouts that support different window sizes? I'm working on a procedurally generated console game in my free time, using Python + curses, and this is an issue I run into as well.

I've been considering taking some time to try to write some sort of "fluid" or "dynamic" layout framework for curses (i.e. specify percents for width / height, and have it automatically expand). Seems like a giant pain though...