def play_session(filename, date, n_new_cards): deck = sm2.load(filename) play_rounds(deck.get_session_cards(date, n_new_cards)) deck.save(filename)
def play_extended_session(filename, nsessions, date, n_new_cards): deck = sm2.load(filename) for d in range(date, date + nsessions): play_rounds(deck.get_session_cards(d, n_new_cards)) deck.save(filename)