added stalling

This commit is contained in:
Alexandre 2025-01-06 21:18:15 +01:00
parent c9b2b9f392
commit fdc5c1ca38
4 changed files with 35 additions and 24 deletions

View File

@ -1,28 +1,27 @@
144.63000000000028
0
92.0
1
13 21
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 1 3 1 3 1 0 1 0 1 2 1 2 1 5 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 1 3 1 3 1 3 1 0 1 2 1 2 1 0 1 4 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 1 3 1 3 1 3 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 1 3 1 3 1 3 1 2 1 2 1 0 1 4 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 3 1 3 1 3 1 0 1 0 1 2 1 0 1 4 1 5 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 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 0 1 2 1 2 1 2 1 2 1 0 1 5 1 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 2 1 2 1 2 1 2 1 2 1 0 1 5 1 5 1
1 3 3 3 0 2 2 2 2 2 2 2 2 2 2 0 5 5 5 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 0 2 2 2 2 2 2 2 2 0 5 5 5 5 1
1 6 1 3 1 3 1 2 1 2 1 2 1 2 1 0 1 5 1 4 1
1 6 6 3 3 3 3 0 2 2 2 2 2 2 0 5 5 5 4 4 1
1 6 1 6 1 3 1 2 1 2 1 2 1 2 1 5 1 4 1 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
3
9 7 5 145.02700000000019
5 7 3 145.20000000000041
7 7 3 147.00000000000043
3 17 1 92.5
11 6 3 92.50000000000007
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
7 8 0 3 3 5 0 0
7 7 3 1 3 3 2 0
4
3 14 2
4 15 0
1 13 2
1 8 4
11 14 3
9 14 0

View File

@ -497,6 +497,15 @@ Y_LARGEUR_EMPIRES = 180
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):
with open("entrees.txt", "w") as entrees:
print(instant, file=entrees)
@ -540,6 +549,8 @@ def graphing():
def simulation(strategies):
def pas_de_jeu():
while(not can_pass()):
time.sleep(0.05)
if len(joueurs) - joueurs.count(None) > 0:
#st = time.time()
evenement = evenements.pop(0)

1
pause.txt Normal file
View File

@ -0,0 +1 @@
0

View File

@ -1 +1 @@
1
0