group-b/prototype.py

27 lines
671 B
Python

from group_b.action_deck import ActionDeck, ActionCard
from group_b.player import PlayerState
import os
p = PlayerState()
os.system('cls' if os.name=='nt' else 'clear')
print("Stage start. Ready?")
while len(p._pace_note_queue) > 0:
print(p.resources())
print(f"{len(p._stage._cards)} notes left... keep pushing!")
print()
print(', '.join([str(c) for c in p._pace_note_queue]))
print("you can:", [f"{idx}: {str(c)}" for idx, c in enumerate(p.hand())])
choice = int(input("action index: "))
os.system('cls' if os.name=='nt' else 'clear')
card = p.hand()[choice]
p.perform_action(card)
p.draw()
p.check_damage()
print("You've beat the stage!")