coordinate0, coordinate1, reward, move, rewardCoordB) if restart == True: generation = False """--------- DISPLAYING SHOT --------""" #Shot shotEnemy.movements(iteration, currentExplo) shotEnemy.blintingShot(window) endRoadShot = shotEnemy.reinitializeMovement() if endRoadShot is True: shotEnemy.setterOrigineCoordinates() """--------- DISPLAYING DK --------""" #Blit personnage into the map. dkPersonnage.displayAvatar(window) pygame.display.flip() iteration += 1 """--------- DISPLAYING INFO --------""" QTableCoordinate, QTable = QLearning.getterTables() displayResum.displayRoad(QTableCoordinate, QTable) """----------- E GREEDY REGULATION -------------""" if iteration % nbExploration == 0: if nbExploration == 5000: nbExploration = 2000 currentExplo = QLearning.getterExploration() QLearning.setterExploration(currentExplo - 0.1) currentExplo = QLearning.getterExploration() print("exploration done -0.1 now: ", currentExplo) generation = False """--------- GITEM MOVEMENT (hardcode movement) --------""" isReversed, nbReversed = game.reverseMovement(coordinate1)