1 # Display card output and retreive input
10 def forward(self, stack):
11 if not self.index == len(stack) - 1:
15 if not self.index < 1:
24 def setSide(self, inp):
34 def disp_card(stdscr, stack, obj):
36 stdscr.addstr(str(stack[obj.getIdx()][obj.getSide()]))
38 def get_key(stdscr, stack):
40 disp_card(stdscr, stack, idx)
45 if key == "q" or key == os.linesep:
50 disp_card(stdscr, stack, idx)
54 disp_card(stdscr, stack, idx)
55 if key == "l" or key == "h":
57 disp_card(stdscr, stack, idx)