-
Notifications
You must be signed in to change notification settings - Fork 6
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
야구 게임 단계별 기능 구현 완료 #14
Open
name-mun
wants to merge
28
commits into
SpartaCoding-iOS5:mun
Choose a base branch
from
name-mun:main
base: mun
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 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
4104934
Update README: 풀 리퀘스트 작성 규칙 추가
Jamong-mini ca65084
Update README : 마크다운 문법 수정
Jamong-mini a1f36f5
✨ Lv1 기능 구현
name-mun 71ebc28
✨ 입력값 예외 처리 구현
name-mun 4315d3f
✨ Lv2 기능 구현
name-mun 3d1fbd2
🎨 불필요한 주석 삭제
name-mun 9da9f0a
♻️ 파일을 하나로 합치고 코드 구조 개선
name-mun 0720a26
Revert "♻️ 파일을 하나로 합치고 코드 구조 개선"
name-mun 08e21a9
🔥 코드 통합을 위한 파일 및 코드 제거
name-mun c3abca4
✨ LV1 - 랜덤 숫자를 생성하는 class 기능 구현
name-mun d63454c
✨ LV2 - 게임을 실행하는 BaseballGame 클래스 생성
name-mun 82286cd
✨ LV2 - 입력값 예외 처리를 하는 InputError 클래스 구현
name-mun 3e62ae8
✨ LV2 - 결과값을 저장하는 Result enum 구현
name-mun ab0e5ca
✨ LV2 - 정답을 알려주는 compareInput 메서드 구현
name-mun 3cb8337
✨ LV3 - 정답이 되는 숫자의 범위를 변경하는 기능 구현
name-mun 61d9187
🔥 불필요한 코드 삭제
name-mun 89d76a5
✨ LV4 - 안내 문구 구현
name-mun b7d758c
✨ LV4 - 안내 문구와 gameStart 메서드 연결
name-mun bd5fea5
✨ LV4 - 정답 맞힌 경우 selectCategory 메서드로 이동
name-mun d5069da
🔧 input의 예외 처리 변경
name-mun 33a3bc0
✨ LV5 - 게임 기록 기능 구현
name-mun 13b3ebe
🐛 랜덤 숫자가 한 번만 생성되는 문제 해결
name-mun 02c4fc4
✨ LV6 - 게임 종료 기능 구현
name-mun 6fb1f60
✨ LV6 - 입력값 오류 메시지 기능 구현
name-mun e544ac2
🐛 게임 기록이 없을 시 크래시가 나는 오류 해결
name-mun e2a4892
Merge pull request #1 from name-mun/mun
name-mun fd2f7a6
📝 README 수정
name-mun 65c1ee3
📝 README 자세하게 수정
name-mun 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 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 |
---|---|---|
@@ -1 +1,18 @@ | ||
import Foundation | ||
|
||
|
||
class RandomNumber { | ||
// 서로 다른 임의수 3개를 만드는 함수 | ||
func makeRandomNumber() -> [Int] { | ||
// 랜덤 숫자를 저장할 Set 생성 | ||
var randomNumber = Set<Int>() | ||
|
||
// 서로 다른 숫자가 3개를 생성할 때까지 반복 | ||
while (randomNumber.count < 3) { | ||
randomNumber.insert(Int.random(in: 1 ... 9)) | ||
} | ||
|
||
// 베열로 변환 후 반환 | ||
return Array(randomNumber) | ||
} | ||
} |
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.
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.
하나 배워갑니다~~