import game import numpy as np koma=["王","金","銀","王","金","銀"] ban=[] ban.append([0,0]) for y1 in [1,2,3]: for x1 in [1,2,3]: ban.append([x1,y1]) pos=[2,1,3,8,7,9] hand=["先手","先手","先手","後手","後手","後手"] mode="先手" tr=0 while tr<51: tr=tr+1 sub=game.game() sub.pos=pos sub.hand=hand sub.mode=mode sub.ban=ban sub.koma=koma sub.makedata() mode=sub.mode pos=sub.pos hand=sub.hand print(mode) if mode=="先手勝利": tr=100 if mode=="後手勝利": tr=100