Commit 0ac38a83 by BellCodeEditor

save project

parent b546bfbb
Showing with 3 additions and 2 deletions
......@@ -5,9 +5,9 @@ print("私が出します"+player)
robot=["石","はさみ","布"]
player2=random.choice(robot)
print("私が出します"+player2)
if player=player2:
if player==player2:
print("引き分け")
elif (player== "布" and player2=="石") or (player== "石" and player2=="はさみ") or (player== "はさみ" and player2=="布"):
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