剪刀石头布人工智能目前开发进度
可以将以此比赛的信息(对方出的手势、自己出的手势、胜负)写入数据库 让智障机器人和ai儿子随机出拳! 开发ing··············································································································································· holl = ['剪刀','石头','布'] #3种手势。 import random#导入随机模块,用于随机数生成 import time#导入时间模块,用于让ai休息(雾) numo = 0 while True: file = open("F:/python code/AIvsAI/data.txt",'a',encoding='utf-8') #打开记录文件“data.txt”~ file_ = open("F:/python code/AIvsAI/data2.txt",'a',encoding='utf-8') ''' file__ = open("F:/python code/AIvsAI/data3.txt",'a',encoding='utf-8') ''' num1 = random.choice(holl)#生成0-3的随机数,这个是脑残机器人 num2 =