IrisIA.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:pointpointgame 作者: EnighmaLab 项目源码 文件源码
def randPoint(self,can,point_dico):

        r = 5

        secure_random = random.SystemRandom()
        coord = secure_random.choice(self.randomList)
        array = coord.split('_')
        x = int(array[0])
        y = int(array[1])

        can.create_oval(x-r, y-r, x+r, y+r, fill=self.getColor())

        point = {}
        point['x'] = x
        point['y'] = y

        return point

    #Dictionnaire de point de l'IA. ce Dictionnaire permettra de connaitre tous les emplacements des points de l'IA.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号