Skip to content

Conversation

@rbqks529
Copy link

좀 더 객체를 사용해 보고 싶었는데 다음 주차에는 더 열심히 해보겠습니다!

Copy link

@JGoo99 JGoo99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요구사항 구현, 범위 검증, 예외처리, 테스트 코드 모두 잘 수행해주셔서 크게 코멘트 할 부분이 없네요!
수고하셨습니다!

Comment on lines +15 to +18
public void drawLine(int row, int position) {
if (!this.drawConfirm.confirm(row, position)) {
throw new IllegalArgumentException("Cannot Draw Line");
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

confirm 메서드에 음수 검증이 따로 없는걸로 확인되는데 구현해주신 NaturalNumber 객체를 활용하여 drawLine 의 매개변수로 받으면 좋을 것 같아요.
지금은 매개변수로 -1 을 넣으면 예외가 발생합니다!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants