Beispiel #1
0
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)
Beispiel #2
0
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)