GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Python-Game/game.py at main · Arjsh24/Python-Game Expand file tree/ Copy pathgame.pyMore file actions 33 lines (31 loc) · 884 Bytes / Copy pathgame.pyFile metadata and controls33 lines (31 loc) · 884 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 import random # 내가 고쳤어유 num1 = int(input("하나를 선택하세요 : 가위(0), 바위(1), 보(2) :")) num2 = random.randrange(0, 3) if num2 == 0: print("컴퓨터는 가위를 냈습니다.") elif num2 == 1: print("컴퓨터는 바위를 냈습니다.") else: print("컴퓨터는 보를 냈습니다.") if num1 == 0: if num2 == 1: print("컴퓨터가 이겼습니다") elif num2 == 2: print("당신이 이겼습니다.") else: print("비겼습니다.") elif num1 == 1: if num2 == 0: print("당신이 이겼습니다.") elif num2 == 2: print("컴퓨터가 이겼습니다.") else: print("비겼습니다.") else: if num2 == 0: print("컴퓨터가 이겼습니다") elif num2 == 1: print("당신이 이겼습니다.") else: print("비겼습니다.") |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |