Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/Python-Game.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 15 additions & 12 deletions game.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,36 @@
# 소스코드수정중
# All Korean transcripted to English

import random

num1 = int(input("하나를 선택하세요 : 가위(0), 바위(1), 보(2) :"))
num2 = random.randrange(0, 3)

if num2 == 0:
print("컴퓨터는 가위를 냈습니다.")
print("컴퓨터는 가위를 냈습니다. AI Scissors")
elif num2 == 1:
print("컴퓨터는 바위를 냈습니다.")
print("컴퓨터는 바위를 냈습니다. AI rocks")
else:
print("컴퓨터는 보를 냈습니다.")
print("컴퓨터는 보를 냈습니다.AI papers")

if num1 == 0:
if num2 == 1:
print("컴퓨터가 이겼습니다")
print("컴퓨터가 이겼습니다 Computer Wins!")
elif num2 == 2:
print("당신이 이겼습니다.")
print("당신이 이겼습니다. You Win!")
else:
print("비겼습니다.")
print("비겼습니다.Draw!")
elif num1 == 1:
if num2 == 0:
print("당신이 이겼습니다.")
print("당신이 이겼습니다.You Win!")
elif num2 == 2:
print("컴퓨터가 이겼습니다.")
print("컴퓨터가 이겼습니다.Computer Wins!")
else:
print("비겼습니다.")
print("비겼습니다.Draw")
else:
if num2 == 0:
print("컴퓨터가 이겼습니다")
print("컴퓨터가 이겼습니다.Computer Wins!")
elif num2 == 1:
print("당신이 이겼습니다.")
print("당신이 이겼습니다.You Win!")
else:
print("비겼습니다.")
print("비겼습니다.Draw!")
2 changes: 2 additions & 0 deletions newGame.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
print('new game')
print('Hello GitHub!")