added stalling
This commit is contained in:
parent
c9b2b9f392
commit
fdc5c1ca38
45
entrees.txt
45
entrees.txt
|
@ -1,28 +1,27 @@
|
||||||
144.63000000000028
|
92.0
|
||||||
0
|
1
|
||||||
13 21
|
13 21
|
||||||
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
|
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
|
||||||
1 3 3 3 3 3 3 3 0 2 2 2 2 0 5 5 5 5 5 5 1
|
1 3 3 3 3 3 0 2 2 2 2 2 2 2 2 0 5 5 5 5 1
|
||||||
1 3 1 3 1 3 1 0 1 0 1 2 1 2 1 5 1 5 1 5 1
|
1 3 1 3 1 0 1 2 1 2 1 2 1 2 1 0 1 5 1 5 1
|
||||||
1 3 3 3 3 3 6 6 6 6 0 2 2 2 0 5 5 5 5 5 1
|
1 3 3 3 3 0 2 2 2 2 2 2 2 2 0 4 4 4 5 5 1
|
||||||
1 3 1 3 1 3 1 3 1 0 1 2 1 2 1 0 1 4 1 5 1
|
1 3 1 3 1 2 1 2 1 2 1 2 1 2 1 0 1 5 1 5 1
|
||||||
1 3 3 3 3 3 3 3 3 0 2 2 2 2 2 2 2 4 0 5 1
|
1 3 3 3 0 2 2 2 2 2 2 2 2 2 2 0 5 5 5 5 1
|
||||||
1 3 1 3 1 3 1 3 1 2 1 2 1 2 1 2 1 5 1 5 1
|
1 6 1 3 1 0 1 2 1 2 1 2 1 2 1 2 1 5 1 5 1
|
||||||
1 3 3 3 3 3 3 3 0 2 2 2 2 2 2 0 0 5 0 5 1
|
1 3 3 3 3 3 0 2 2 2 2 2 2 2 2 0 5 5 5 5 1
|
||||||
1 3 1 3 1 3 1 3 1 2 1 2 1 0 1 4 1 5 1 4 1
|
1 6 1 3 1 3 1 2 1 2 1 2 1 2 1 0 1 5 1 4 1
|
||||||
1 3 3 3 3 3 6 6 0 2 0 4 4 4 4 5 5 5 5 5 1
|
1 6 6 3 3 3 3 0 2 2 2 2 2 2 0 5 5 5 4 4 1
|
||||||
1 3 1 3 1 3 1 0 1 0 1 2 1 0 1 4 1 5 1 4 1
|
1 6 1 6 1 3 1 2 1 2 1 2 1 2 1 5 1 4 1 4 1
|
||||||
1 3 3 3 3 3 3 3 3 3 0 2 2 2 0 4 4 5 4 4 1
|
1 6 3 3 3 3 0 2 2 2 2 2 2 2 0 5 5 4 4 4 1
|
||||||
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
|
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
|
||||||
3
|
3
|
||||||
9 7 5 145.02700000000019
|
3 17 1 92.5
|
||||||
5 7 3 145.20000000000041
|
11 6 3 92.50000000000007
|
||||||
7 7 3 147.00000000000043
|
9 5 3 94.93000000000008
|
||||||
|
3
|
||||||
|
7 6 0 2 0 3 1 1
|
||||||
|
1 15 1 0 0 1 0 0
|
||||||
|
3 16 2 1 2 1 0 0
|
||||||
2
|
2
|
||||||
7 8 0 3 3 5 0 0
|
11 14 3
|
||||||
7 7 3 1 3 3 2 0
|
9 14 0
|
||||||
4
|
|
||||||
3 14 2
|
|
||||||
4 15 0
|
|
||||||
1 13 2
|
|
||||||
1 8 4
|
|
||||||
|
|
|
@ -497,6 +497,15 @@ Y_LARGEUR_EMPIRES = 180
|
||||||
|
|
||||||
TIME_FACTOR = 7
|
TIME_FACTOR = 7
|
||||||
|
|
||||||
|
def can_pass():
|
||||||
|
with open("pause.txt", "r") as pause:
|
||||||
|
val = pause.readline().split()
|
||||||
|
#print(val)
|
||||||
|
if(val[0]=='0'):
|
||||||
|
return True
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
def decision(programme, indiceJoueur, plateau, plateauCouleur, bombes, joueurs, powerups, instant):
|
def decision(programme, indiceJoueur, plateau, plateauCouleur, bombes, joueurs, powerups, instant):
|
||||||
with open("entrees.txt", "w") as entrees:
|
with open("entrees.txt", "w") as entrees:
|
||||||
print(instant, file=entrees)
|
print(instant, file=entrees)
|
||||||
|
@ -540,6 +549,8 @@ def graphing():
|
||||||
|
|
||||||
def simulation(strategies):
|
def simulation(strategies):
|
||||||
def pas_de_jeu():
|
def pas_de_jeu():
|
||||||
|
while(not can_pass()):
|
||||||
|
time.sleep(0.05)
|
||||||
if len(joueurs) - joueurs.count(None) > 0:
|
if len(joueurs) - joueurs.count(None) > 0:
|
||||||
#st = time.time()
|
#st = time.time()
|
||||||
evenement = evenements.pop(0)
|
evenement = evenements.pop(0)
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1
|
0
|
Loading…
Reference in New Issue