-
Notifications
You must be signed in to change notification settings - Fork 464
[빙봉] 블랙잭 2단계 미션 제출합니다. #88
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
Conversation
블랙잭 2단계 하는 중 PR
… 있도록 수정, 블랙잭을 판별하기 위한 Participant 인터페이스에 countHand() 메서드 추가
hongsii
left a comment
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.
1단계 피드빅 반영 및 2단계도 잘 구현해주셨네요! 👍
몇 가지 피드백 드렸으니, 확인하셔서 반영해주세요~
| this.players = splitNames(names); | ||
| } | ||
|
|
||
| public void initMoney(List<String> moneys, MoneyResult moneyResult) { |
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.
MoneyResult 를 파라미터로 전달하지 않고 여기서 생성해도 되지 않을까요?
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.
Players에서 MoneyResult를 생성해도 되지만 MoneyResult를 생성하는 것이 Players 클래스의 역할이라 보기 어렵다고 생각했습니다. 어디에 들어가도 애매할 것 같아 Controller로 뺐었는데 Players의 역할이라고 봐도 괜찮을까요?
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.
말씀하신대로 역할이 애매하다면 스스로 초기화를 책임져도 좋을 것 같아요!
MoneyResult 의 정적 팩토리 메서드에 getter로 필요한 값(Players)을 파라미터로 전달해 생성했어도 좋았을 것 같습니다.
…ame() 메서드로 넣도록 수정
… 코드 작성 및 테스트 코드 추가
hongsii
left a comment
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.
피드백 반영을 잘 해주셨습니다! 👍
코멘트 남겼으니 확인해주세요. 이번 단계는 머지하겠습니다!
미션 진행하시느라 고생많으셨습니다 :)
많은 피드백 부탁드립니다! 감사합니다!!