import random
total_jibun = 0
total_aite = 0
def show_position(total_jibun, total_aite):
pos_jibun = ""
pos_aite = ""
for i in range(20):
if i + 1 == total_jibun:
pos_jibun += "◆"
else:
pos_jibun += "□"
if i + 1 == total_aite:
pos_aite += "◆"
else:
pos_aite += "□"
print(pos_jibun)
print(pos_aite)
while total_jibun < 20 and total_aite < 20:
input("サイコロを振ります、エンターキーを押してください。")
total_jibun += random.randint(1, 6)
total_aite += random.randint(1, 6)
print("自分の合計 : " + str(total_jibun) + ", 相手の合計 : " + str(total_aite))
show_position(total_jibun, total_aite)
print("")
if total_jibun >= 20 and total_aite >= 20:
print("引き分け")
elif total_jibun >= 20:
print("勝ち")
else:
print("負け")