bot.py 文件源码

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

项目:meinkurve 作者: michgur 项目源码 文件源码
def place(self):
        print 'Game Index:',self.root.gameindex






        # --------DO NOT DELETE!!!-------

        if self.iteration < 10:
            a = np.random.rand(10, 10)
            b = np.random.rand(10)
            c = np.random.rand(10, 3)
            d = np.random.rand(3)
            self.net = neural.Net(a, b, c, d, 1)
        # else:
        #     if self.file:
        #         self.file.close()
        #         bisect.insort_left(self.model_list, Model('files/data%s.txt' % self.iteration))
        #         # self.model_list.append(Model('files/data%s.txt' % self.iteration))
        #     if self.iteration%20 == 0:
        #         for i in self.model_list:
        #             print i.size
        #         for i in range(10):
        #             os.remove(self.model_list[0].file)
        #             del self.model_list[0]

        self.iteration += 1


        Player.place(self)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号