Commit b546bfbb by BellCodeEditor

save project

parent 889fe0e5
Showing with 8 additions and 2 deletions
...@@ -4,4 +4,10 @@ player=input("手を出しましょう!") ...@@ -4,4 +4,10 @@ player=input("手を出しましょう!")
print("私が出します"+player) print("私が出します"+player)
robot=["石","はさみ","布"] robot=["石","はさみ","布"]
player2=random.choice(robot) player2=random.choice(robot)
print("私が出します"+player2) print("私が出します"+player2)
\ No newline at end of file if player=player2:
print("引き分け")
elif (player== "布" and player2=="石") or (player== "石" and player2=="はさみ") or (player== "はさみ" and player2=="布"):
print("プレイヤー1勝利")
else:
print("プレイヤー2勝利")
\ No newline at end of file
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