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.
한길 리뷰어님 안녕하세요!
사다리 게임 미션 1단계 제출합니다.
이번 미션에서 최대한 메서드를 분리하여 작성하였고, MVC 패턴을 고려하면서 설계하였습니다.
이 부분에 대한 피드백 부탁드립니다..! 항상 감사드립니다!
1단계 구현
미션을 수행하기 전, 네이버 사다리 게임을 분석해보았습니다.

이를 통해, 4x4 사다리의 경우, 총 4개의 세로줄이 존재하며, 각 줄 사이에는 3개의 연결선이 존재해야 한다는 점을 확인하였습니다.
사다리 분석 결과
|-----| |-----|
형태로 출력됩니다.isPreviousLine
변수를 활용하여 제어하였습니다.Random
클래스를 사용하여 가로선을 생성하였습니다.구현한 주요 기능
Controller
model
과view
를 연결하는 역할Model
Line
을 포함Point
를 사용해 가로선을 관리HAS_POINT
,NO_POINT
)를 나타내는 EnumView
|
,-----
," "
)질문
SRP를 적절하게 준수했는지 궁금합니다. 현재 구조에서 추가적인 리팩토링이 필요할까요?
연결선이 최소한 한 번은 등장하도록 보장해야 할까요? 현재 랜덤한 값이 적용되면서 어떤 줄은 가로선(

HAS_POINT
)이 하나도 없는 경우도 발생합니다. 연결선이 최소한 한 번 이상 생성되도록 강제하는 것이 더 적절할까요?