dodal toy model za app

master
Kostanjevec 2022-04-28 18:37:36 +02:00
parent 9229489221
commit f5a7dea251
1 changed files with 51 additions and 0 deletions

51
test.py 100644
View File

@ -0,0 +1,51 @@
# item
## struktura
from random import randint
title, due, interval = 2, 3, 4
#collection
clltn = []
def generate_card ():
title = "".join([chr(randint(ord('a'), ord('z'))) for i in range(5)])
due = -1 #means new
interval = 0
card = title, due, interval
return card
def generate_clltn (n_of_cards):
clltn = [] #mogoče bi blo dobro met kaj drugega...
for n in range(n_of_cards):
clltn.append(generate_card())
return clltn
# USER
deck_size = 20
user_clltn = generate_clltn(100)
max_new = 5
print(user_clltn)
def get_new(user_clltn, n_of_cards):
for card in user_clltn:
pass
def get_due(user_clltn, n_of_cards):
pass
def generate_deck(user_clltn, max_new, deck_size):
pass
#1 SR - super-memo style
#2 Probabilistic
# engine
current_deck = []