List needs

This commit is contained in:
Geoffrey Frogeye 2016-02-11 21:34:31 +01:00
parent ae14fe0301
commit b2f1c7319f

10
main.py
View file

@ -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