Commit 4eabe7eb by BellCodeEditor

save project

parent b5c6bbbe
Showing with 16 additions and 0 deletions
# 玩家出拳
import random
player=input("手を出しましょう!")
print("私が出します"+player)
robot=["石","はさみ","布"]
player2=random.choice(robot)
print("私が出します"+player2)
if player in list(robot):
if player==player2:
print("引き分け")
elif (player== "布"and player2=="石") or (player=="石" and player2=="はさみ") or (player== "はさみ" and player2=="布"):
print("プレイヤー1勝利")
else:
print("プレイヤー2勝利")
else:
print("パンチが効かない")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment