List needs
This commit is contained in:
parent
ae14fe0301
commit
b2f1c7319f
10
main.py
10
main.py
|
@ -195,7 +195,17 @@ def end():
|
||||||
print("--- End!")
|
print("--- End!")
|
||||||
|
|
||||||
# IA
|
# IA
|
||||||
|
def listNeeds():
|
||||||
|
N = []
|
||||||
|
# client, product
|
||||||
|
for c in range(C):
|
||||||
|
for p in range(P):
|
||||||
|
for cp in range(abs(Ci[c][p])):
|
||||||
|
N.append((c, p))
|
||||||
|
return N
|
||||||
|
|
||||||
while t < 10:
|
while t < 10:
|
||||||
|
N = listNeeds()
|
||||||
newTurn()
|
newTurn()
|
||||||
|
|
||||||
# Output
|
# Output
|
||||||
|
|
Reference in a new issue