List needs
This commit is contained in:
parent
ae14fe0301
commit
b2f1c7319f
1 changed files with 10 additions and 0 deletions
10
main.py
10
main.py
|
@ -195,7 +195,17 @@ def end():
|
|||
print("--- End!")
|
||||
|
||||
# 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:
|
||||
N = listNeeds()
|
||||
newTurn()
|
||||
|
||||
# Output
|
||||
|
|
Reference in a new issue