def calculateAllianceProbabilityArg(self, voteI: Player, voteJ: Player, voteK: Player): return 2*voteK.power()*((abs(voteK.position - voteJ.position) - abs(voteK.position - voteI.position))/self.posDiff)
def voteBetweenPlayers(self, voteI: Player, voteJ: Player, voteK: Player): diffIK = abs(voteI.position - voteK.position) diffIJ = abs(voteI.position - voteJ.position) #return voteI.power()*((diffIK - diffIJ)/self.__positionMaxDifference) return 2*voteI.power()*((diffIK - diffIJ)/self.__positionMaxDifference)