-
Notifications
You must be signed in to change notification settings - Fork 476
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
[자동차 경주] 손보람 미션 제출합니다. #439
Open
BoRamSon
wants to merge
8
commits into
woowacourse-precourse:main
Choose a base branch
from
BoRamSon:boramson
base: main
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
Commits on Oct 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d5d3029 - Browse repository at this point
Copy the full SHA d5d3029View commit details -
- await MissionUtils.Console.readLineAsync()
Configuration menu - View commit details
-
Copy full SHA for dd52c97 - Browse repository at this point
Copy the full SHA dd52c97View commit details -
feat: [2] validate for carName
1. 빈값일 경우 ERROR 2. 에러값(null, undefined)일 경우 ERROR 3. 영어이름(a-z A-Z)과 콤마(,)만 입력 가능하며 이외 값은 ERROR 4. 콤마(,)가 먼저 입력될 경우 ERROR 5. 마지막 자리에 콤마(,)가 입력될 경우 ERROR 6. 5글자 이상 넘어가는 이름이 포함되어 있다면 ERROR
Configuration menu - View commit details
-
Copy full SHA for 85bf925 - Browse repository at this point
Copy the full SHA 85bf925View commit details -
- await MissionUtils.Console.readLineAsync()
Configuration menu - View commit details
-
Copy full SHA for ab7dc8b - Browse repository at this point
Copy the full SHA ab7dc8bView commit details -
feat : [4] validate for tryNumber
1. 빈값일 경우 ERROR 2. 에러값(NaN) or 숫자가 아닌 값일 경우 ERROR 3. 과도하게 큰숫자 방지 (숫자 20 초과 시 ERROR)
Configuration menu - View commit details
-
Copy full SHA for cc5f696 - Browse repository at this point
Copy the full SHA cc5f696View commit details -
1. carNames 배열을 객체배열로 만들어주기 2. tryNumber에 따라 진행될 for문 만들어주기 3. 만들어진 객채배열을 map함수에 넣기 4. MissionUtils.Random.pickNumberInRange(0, 9) 사용하여 랜덤숫자 뽑기 5. if문으로 뽑은 랜덤숫자가 4보다 크면 해당 객체배열이 forward 할 수 있도록 forwardNum값 1 증가시키기 6. carNames 변수에 값 racingGame 결과 Update. 7. 매시도마다 결과값 dashe 형태로 Console.print 출력.
Configuration menu - View commit details
-
Copy full SHA for 496112a - Browse repository at this point
Copy the full SHA 496112aView commit details -
1. 객체배열에서 가장 높은 forwardNum을 가진 값이 무엇인지 찾기 (Math.max) 2. 가장 높은 forwardNum값을 가진 객체배열만 필터링 (Array.prototype.filter( )) 3. 필터링된 객체배열에서 carName만 추출하여 배열 만들면서 이름만 추출하기. 4. 최종 우승자 Console.print 출력.
Configuration menu - View commit details
-
Copy full SHA for f3e12b3 - Browse repository at this point
Copy the full SHA f3e12b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 983e506 - Browse repository at this point
Copy the full SHA 983e506View commit details
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.