sttengs
parent
2abaddde11
commit
4179a54943
26
settings.py
26
settings.py
|
@ -9,13 +9,13 @@ DOMINO_H = 200
|
||||||
DOMINOS = []
|
DOMINOS = []
|
||||||
|
|
||||||
values = range(7)
|
values = range(7)
|
||||||
# for v_up in values:
|
for v_up in values:
|
||||||
# for v_down in values:
|
for v_down in values:
|
||||||
# if not [v_up, v_down] in DOMINOS and not [v_down, v_up] in DOMINOS:
|
if not [v_up, v_down] in DOMINOS and not [v_down, v_up] in DOMINOS:
|
||||||
# DOMINOS.append([v_up, v_down])
|
DOMINOS.append([v_up, v_down])
|
||||||
|
|
||||||
for _ in range(10):
|
# for _ in range(10):
|
||||||
DOMINOS.append([[1, '1'], [1, '1']])
|
# DOMINOS.append([[1, '1'], [1, '1']])
|
||||||
|
|
||||||
print(DOMINOS)
|
print(DOMINOS)
|
||||||
|
|
||||||
|
@ -30,13 +30,13 @@ str_values = {
|
||||||
6: ["3!", "2+2*2", "round(pi)*2", "(if 6>1)*6", "10-4", "24/4", "sqrt(12*3)", "3^2-3", "2*(4-1)", "{1,3,6}[2]"]
|
6: ["3!", "2+2*2", "round(pi)*2", "(if 6>1)*6", "10-4", "24/4", "sqrt(12*3)", "3^2-3", "2*(4-1)", "{1,3,6}[2]"]
|
||||||
}
|
}
|
||||||
|
|
||||||
# for i in range(len(DOMINOS)):
|
for i in range(len(DOMINOS)):
|
||||||
# v_up = choice(str_values[DOMINOS[i][0]])
|
v_up = choice(str_values[DOMINOS[i][0]])
|
||||||
# str_values[DOMINOS[i][0]].remove(v_up)
|
str_values[DOMINOS[i][0]].remove(v_up)
|
||||||
# v_down = choice(str_values[DOMINOS[i][1]])
|
v_down = choice(str_values[DOMINOS[i][1]])
|
||||||
# str_values[DOMINOS[i][1]].remove(v_down)
|
str_values[DOMINOS[i][1]].remove(v_down)
|
||||||
#
|
|
||||||
# DOMINOS[i] = [[DOMINOS[i][0], v_up], [DOMINOS[i][1], v_down]]
|
DOMINOS[i] = [[DOMINOS[i][0], v_up], [DOMINOS[i][1], v_down]]
|
||||||
|
|
||||||
|
|
||||||
print(DOMINOS)
|
print(DOMINOS)
|
||||||
|
|
Loading…
Reference in New Issue