forked from woowacourse/javascript-baseball-precourse
-
Notifications
You must be signed in to change notification settings - Fork 20
[1주차] 김동건 미션제출합니다 #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rahwan10
wants to merge
7
commits into
greedy-team:rahwan10
Choose a base branch
from
rahwan10:main
base: rahwan10
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| 1. 컴퓨터의 값 뽑아오기 | ||
| 2. 유저값 받아오기 | ||
| 3. 컴퓨터와 유저의 값 비교하기 | ||
| 4. 결과에 맞게 출력하기 | ||
| 5. 재시작하기 | ||
|
|
||
| 1. 컴퓨터의 값 뽑아오기 | ||
| 1-1.세가지 랜덤값을 받아 저장하는 함수 | ||
| 1-2.저장할 값이 기존의 값과 겹치는지 확인하는 함수 | ||
|
|
||
| 2. 유저값 받아오기 | ||
| 2-1. 유저값을 받아 배열로 저장하는 함수 | ||
| 2-2. 유저값에 겹치는 숫자가 있는지 확인하는 함수 | ||
| 2-3. 각 값을 비교하는 함수 | ||
|
|
||
| 3. 컴퓨터와 유저의 값 비교하기 | ||
| 3-1. 유저와 컴퓨터 값을 비교하는 함수 | ||
| 3-2. 볼이 몇개인지 확인하는 함수 | ||
| 3-3. 스트라이크가 몇개인지 확인하는 함수 | ||
|
|
||
| 4.결과에 맞게 출력하기 | ||
| 4-1. 볼과 스트라이크 갯수에 따라 text만드는 함수 | ||
| 4-2. 만든 텍스트를 결과창에 출력하는 함수 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
숫자야구 게임의 입력창에서 입력을 하고 확인 버튼을 누르면 정상적으로 게임이 진행되지만, Enter 키를 누르면 그대로 브라우저가 새로고침되는 문제가 현재 있어요.
<form>과<button>, 특히<button>의type에 대해 좀 더 조사해보시면 원인을 유추해보실 수 있을 것 같아요. 고민해보시고 해결이 가능하다면 해결해 보시겠어요?