Commit 89d34564 authored by Grégoire PETIT's avatar Grégoire PETIT
Browse files

yolo

parent eb6bf2d6
......@@ -199,7 +199,6 @@ for i in neighborCase4:
#print(denivCase1, denivCase2, denivCase3, denivCase4, 'deniv')
##
"""[1175.629339729832, ((139, 294), 0, 0.6072465597778058), ((140, 293), 0, 923.6220174220426), ((139, 293), 0, 0.6072465597778058), ((141, 294), 0, 2725.9298068425705), ((141, 293), 0, 2645.166014392122)]
......@@ -217,25 +216,16 @@ Graph[140][294][1] = 2725
Graph[141][293][1] = 2726"""
##
#print("pop totale de Rize = ", test)
#print(Graph[2103//15][4422//15], 'un de Rize avant') # [0, 1175.629339729832, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]] un de Rize avant pourtant dans le for juste avant on a une liste cohérente
#Cellules contenant la population de Rize
pop_totale_de_Rize = test
#print("Graph prêt !")
#On fait viellir les zombies grâce à cette fonction
def getZombiesOlder(zombiesList):
for i in range(15):
......@@ -250,10 +240,7 @@ def are_they_zombies(zombies):
boolean = True
return boolean
"""def getGraphOlder(graphe):
for i in range(newWidth):
for j in range(newHeigth):"""
def zombies_repartition(zombies, N): #N is the number of zombies that we want to affect to a neighboring cell
repartition = [] #This repartition is done giving the age of the zombies
for i in zombies:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment