i have program.
i have made this
scoreboard = '\n'.join([ '┌────────────┐', '│ player │', '│ │', '│ 4 │', '│ │', '│ │', '│ computer │', '│ │', '│ 5 │', '│ │', '└────────────┘'])
then have done
score_board = scoreboard
then have defined function scoreboard.
def scoreboard(): i, line in enumerate(score_board.splitlines()): mvaddstr(12 + i, 1, line) endwin()
then run
scoreboard()
on program prints nothing. if press button, pops up
<function scoreboard @ 0x03acf6a8>
my full program here not done. http://pastebin.com/l1ndnpx2
how can make print scoreboard?
thanks!
that's because redefine 2 times variable scoreboard (function / list). try changing name of function.
Comments
Post a Comment