From 5428fc6c939c0f391dfa8971188c9d0c338bfcb8 Mon Sep 17 00:00:00 2001 From: faddishcorn Date: Fri, 10 May 2024 18:11:18 +0900 Subject: [PATCH 01/22] =?UTF-8?q?docs(README.md):=20=EB=A6=AC=EB=93=9C?= =?UTF-8?q?=EB=AF=B8=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8b2833c..c81133b 100644 --- a/README.md +++ b/README.md @@ -1 +1,22 @@ -# javascript-baseball-precourse \ No newline at end of file +# 1회차 미니과제 - 숫자야구게임 만들기 +## 구현 기능 +### 정답 생성 (generateNumbers) +*1~9사이 숫자를 중복 없이 3자리수를 만듭니다. +### 입력 처리 (handleSubmit) +*사용자가 값을 입력 후 제출 시에 처리하는 함수입니다. +### 게임 재시작 (restartGame) +*사용자가 정답을 맞춘 후 게임 초기화 및 재시작을 가능케 해주는 기능입니다. +### 정답 유효성 확인 (checkInput) +*사용자가 입력한 값이 유효한지 검사합니다. +### 중복 제거 (removeDuplicates) +*값에서 중복값을 제거 후 반환합니다. +### 0값 제거 (removeZero) +*값에서 0값을 제거 후 반환합니다. +### 결과 출력 (displayLogText) +*결과 부분에 값을 출력해줍니다. +### 결과 계산 (counting) +*스트라이크 및 볼을 계산하여 calculateScore에 전달해줍니다. +### 계산값 합산 (calculateScore) +*총 몇 스트라이크 몇 볼인지 계산합니다. +### 점수 출력 (displayScore) +*총 몇 스트라이크 몇 볼인지 결과부분에 출력해줍니다. \ No newline at end of file From 51be1c47a8c8901210df2dc17b9112f99b2ac7ea Mon Sep 17 00:00:00 2001 From: faddishcorn Date: Fri, 10 May 2024 18:21:59 +0900 Subject: [PATCH 02/22] =?UTF-8?q?docs(index.html):=20=EC=9B=B0=EC=BB=B4=20?= =?UTF-8?q?=ED=99=94=EB=A9=B4=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 42 ++++++++++++++++++++++++++++++------------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/index.html b/index.html index b021b5c..4ca191c 100644 --- a/index.html +++ b/index.html @@ -1,12 +1,30 @@ - - - - - - - - -
- - - + + + + + + 숫자야구 + + + +
+

⚾숫자 야구 게임에 오신 것을 환영합니다.
+ +

+
+ + \ No newline at end of file From dbb17abc7f6858111308c7f45804f02ec5e16489 Mon Sep 17 00:00:00 2001 From: faddishcorn Date: Fri, 10 May 2024 18:24:42 +0900 Subject: [PATCH 03/22] =?UTF-8?q?docs(index.html):=20=EC=9B=B0=EC=BB=B4=20?= =?UTF-8?q?=ED=99=94=EB=A9=B4=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 1 - 1 file changed, 1 deletion(-) diff --git a/index.html b/index.html index 4ca191c..82a6f1b 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,6 @@ 숫자야구