Re:Show HN: Aquarium for Mac terminal
by detaro on Tuesday December 20, 2016 @12:52PM
(#13222155)
Works with some slight modifications under Python3 on windows in the default-cmd as well, but not flicker-free sadly.
I added colorama [0] for ANSI translation, used a new function to get the terminal size cross-plattform [1] and using Python 3 required a) print-functions and b) explicit integer division for values derived from WIDTH/HEIGHT, since the behaviour of / on ints changed)
Re:Show HN: Aquarium for Mac terminal
by Doorbell88 on Tuesday December 20, 2016 @09:59AM
(#13220316)
I made an aquarium for the terminal, written in Python (needs termcolor module to run). It was a project I wrote to help me learn OOP.
It randomly generates a unique aquarium ecosystem every time you run it.
It adjusts to your terminal window size, so you can run it fullscreen or just have a tiny little aquarium off to the side to keep you company while you work!
Try it out, and let me know what you think :)
I added colorama [0] for ANSI translation, used a new function to get the terminal size cross-plattform [1] and using Python 3 required a) print-functions and b) explicit integer division for values derived from WIDTH/HEIGHT, since the behaviour of / on ints changed)
[0] https://pypi.python.org/pypi/colorama
[1] https://docs.python.org/3/library/shutil.html#shutil.get_ter...
Really nice work! I'll leave it running when I'm not using the terminal on my side monitor.
[1] http://i.imgur.com/H3RLPS4.png