From 5b6b0e9757f2e2e0a31f027ca76c45918325104c Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Fri, 11 Feb 2022 18:09:57 +0800
Subject: [PATCH] save project

---
 diy1.py | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/diy1.py b/diy1.py
index 66a788c..041a0f9 100644
--- a/diy1.py
+++ b/diy1.py
@@ -1,3 +1,15 @@
 # 玩家出拳
-player = input("請出拳(石頭|剪刀|布):")
-print("玩家出拳:"+player)
\ No newline at end of file
+player = input("請出拳(A|B|C):")
+print("玩家出拳:"+player)
+# jk出拳
+import random
+list=["a","b","c"]
+computer=random.choice(list)
+print("計算機:"+computer)
+# 
+if player==computer:
+    print("平局")
+elif (player==("A") and computer=="b")or(player==("B") and computer=="c")or(player==("C") and computer=="a"):
+     print("你贏了")
+else:
+ print("你輸了")
\ No newline at end of file
--
libgit2 0.25.0