#以下为代码
a=True
b=True
print('游戏即将开始,双方请做好准备')
print('任意一方输入0则游戏结束')
print('1=剪子,2=包袱,3=锤')
print('如果有问题,请打字:help,如果没有,请输入:00')
s=input()
if s=='help':
print('以下为此游戏规则:','\n此游戏为‘剪子包袱锤’,1可以对付2,2可以对付3,3可以对付1(1=剪子,2=包袱,3=锤)。')
while a!=0 and b!=0:
a=int(input('a:'))
for i in range(1,80+1):
print('*'*80)
b=input('b:')
b=int(b)
print('*'*30)
if a>=4:
print('a犯规!')
break
if b>=4:
print('b犯规!')
break
elif a<b and a!=0 and b!=0:
if a==1 and b==3:
print('b win!')
else:
print('a win!')
elif b<a and a!=0 and b!=0:
if b==1 and a==3:
print('a win!')
else:
print('b win!')
elif a==b and a!=0 and b!=0:
print('level the score!')
else:
print('game over!')
break
#以下为代码
a=True
b=True
print('游戏即将开始,双方请做好准备')
print('任意一方输入0则游戏结束')
print('1=剪子,2=包袱,3=锤')
print('如果有问题,请打字:help,如果没有,请输入:00')
s=input()
if s=='help':
print('以下为此游戏规则:','\n此游戏为‘剪子包袱锤’,1可以对付2,2可以对付3,3可以对付1(1=剪子,2=包袱,3=锤)。')
while a!=0 and b!=0:
a=int(input('a:'))
for i in range(1,80+1):
print('*'*80)
b=input('b:')
b=int(b)
print('*'*30)
if a>=4:
print('a犯规!')
break
if b>=4:
print('b犯规!')
break
elif a<b and a!=0 and b!=0:
if a==1 and b==3:
print('b win!')
else:
print('a win!')
elif b<a and a!=0 and b!=0:
if b==1 and a==3:
print('a win!')
else:
print('b win!')
elif a==b and a!=0 and b!=0:
print('level the score!')
else:
print('game over!')
break