import numpy as np
import step
def win():
if hand[0]=="後手":
mode="後手勝利"
if hand[3]=="先手":
mode="先手勝利"
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=[]
hand.append("先手")
hand.append("先手")
hand.append("先手")
hand.append("後手")
hand.append("後手")
hand.append("後手")
mode="先手"
tr=0
while tr<30:
tr=tr+1
sub=step.step()
sub.mode=mode
sub.pos=pos
sub.ban=ban
sub.hand=hand
sub.koma=koma
sub.makedata()
pos=sub.pos
hand=sub.hand
mode=sub.mode
print(tr)
print(hand)
print(pos)
win()
if mode=="先手勝利":
tr=150
if mode=="後手勝利":
tr=150
print(mode)
最終更新:2018年01月13日 07:16