2023-10-15 OhSumo.py(評価版) import random as r ahp = 180 adf = 70 bhp = 175 bdf = 60 while ahp > 0 or bhp > 0: aat = ahp * 0.1 bhp -= bdf + aat bat = bhp * 0.1 ahp -= adf + bat i = r.randint(1, 4) if i == 1: chp = ahp ahp = bhp bhp = chp print("ucchari") print(ahp, bhp) if ahp > bhp: print ("貴景勝 win") else: print ("霧島 win") ランキング参加中プログラミング初心者 ランキング参加中Python