From da90a150a194c4212c8ee0840d1e5bb8d15a4db9 Mon Sep 17 00:00:00 2001 From: byungho Date: Tue, 20 Feb 2024 15:58:31 +0900 Subject: [PATCH 1/5] add my text --- game.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/game.py b/game.py index 9cb3593..5056d9c 100644 --- a/game.py +++ b/game.py @@ -1,3 +1,5 @@ +# 소스코드수정중 + import random num1 = int(input("하나를 선택하세요 : 가위(0), 바위(1), 보(2) :")) From c891e33a2018622ff7d0ee5ae1ec262aa3aa09ab Mon Sep 17 00:00:00 2001 From: byungho Date: Tue, 20 Feb 2024 15:58:31 +0900 Subject: [PATCH 2/5] remove --- game.py | 2 ++ newGame.py | 1 + 2 files changed, 3 insertions(+) create mode 100644 newGame.py diff --git a/game.py b/game.py index 9cb3593..5056d9c 100644 --- a/game.py +++ b/game.py @@ -1,3 +1,5 @@ +# 소스코드수정중 + import random num1 = int(input("하나를 선택하세요 : 가위(0), 바위(1), 보(2) :")) diff --git a/newGame.py b/newGame.py new file mode 100644 index 0000000..3d8a607 --- /dev/null +++ b/newGame.py @@ -0,0 +1 @@ +print('new game') \ No newline at end of file From 1f6ea70e52432c30535c61b08edcdb4b30afdf85 Mon Sep 17 00:00:00 2001 From: byungho Date: Tue, 20 Feb 2024 16:52:33 +0900 Subject: [PATCH 3/5] English scripted --- .idea/.gitignore | 3 +++ .idea/Python-Game.iml | 8 ++++++++ .idea/inspectionProfiles/profiles_settings.xml | 6 ++++++ .idea/misc.xml | 7 +++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ game.py | 18 +++++++++--------- 7 files changed, 47 insertions(+), 9 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/Python-Game.iml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/Python-Game.iml b/.idea/Python-Game.iml new file mode 100644 index 0000000..d0876a7 --- /dev/null +++ b/.idea/Python-Game.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..db8786c --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..5a762f1 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/game.py b/game.py index 5056d9c..7476559 100644 --- a/game.py +++ b/game.py @@ -6,26 +6,26 @@ 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("컴퓨터가 이겼습니다") From 489ab0851ad3415ca4892d190f6fc5d44974bce7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Byungho=20aka=20=EB=B9=BC=EA=BC=BC?= <160565781+byun9ho@users.noreply.github.com> Date: Tue, 20 Feb 2024 16:54:39 +0900 Subject: [PATCH 4/5] Update game.py Complete English transcripts --- game.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/game.py b/game.py index 7476559..dea64cd 100644 --- a/game.py +++ b/game.py @@ -1,4 +1,5 @@ # 소스코드수정중 +# All Korean transcripted to English import random @@ -28,8 +29,8 @@ print("비겼습니다.Draw") else: if num2 == 0: - print("컴퓨터가 이겼습니다") + print("컴퓨터가 이겼습니다.Computer Wins!") elif num2 == 1: - print("당신이 이겼습니다.") + print("당신이 이겼습니다.You Win!") else: - print("비겼습니다.") + print("비겼습니다.Draw!") From d5eb9f39b6b554e964ec3eae740ee684e942432c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Byungho=20aka=20=EB=B9=BC=EA=BC=BC?= <160565781+byun9ho@users.noreply.github.com> Date: Tue, 20 Feb 2024 16:55:15 +0900 Subject: [PATCH 5/5] Update newGame.py Comment added --- newGame.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/newGame.py b/newGame.py index 3d8a607..98c7e59 100644 --- a/newGame.py +++ b/newGame.py @@ -1 +1,2 @@ -print('new game') \ No newline at end of file +print('new game') +print('Hello GitHub!")