Zaprogramuj gre w terminalu przy uzyciu biblioteki curses w Pythonie. Wzorujac sie na grach typu Roguelike
Instalacja biblioteki curses na Windowsie: https://stackoverflow.com/questions/32417379/what-is-needed-for-curses-in-python-3-4-on-windows7
In [ ]:
from curses import wrapper
def main(stdscr):
# Clear screen
stdscr.clear()
stdscr.border()
# This raises ZeroDivisionError when i == 10.
for i in range(11, 0, -1):
v = i-10
print(v, i)
stdscr.addstr(i, 0, '10 divided by {} is {}'.format(v, 10 + v))
stdscr.refresh()
stdscr.getkey()
stdscr.refresh()
stdscr.getkey()
wrapper(main)