dkPersonnage.movementExpress(toMove[0], toMove[1]) else: dkPersonnage.reinitRayon() """--------- E GREEDY MOVE ---------""" if noMove == False and immediateMove == False: #exploration if exploration is True and isReversed is False: dkPersonnage.controlAutomatic() #Exploitation else: betterMove = QLearning.exploitationFromTable( coordinate0, isReversed, iterationnbReversed, nbReversed) dkPersonnage.controlManuel(betterMove) """--------- MOVE AND REWARDS --------""" #Dk move = dkPersonnage.getterLastMove() #T coordinate1 = dkPersonnage.getterCoordinates() #T+1 reward = dkPersonnage.recuperateRewards() #T+1 """--------- QLEARNING PHASE --------""" if isReversed is False: restart = QLearning.updateQFunction( coordinate0, coordinate1, reward, move, rewardCoordB) if restart == True: generation = False """--------- DISPLAYING SHOT --------""" #Shot