Skip to content
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

Step3 Step4 merger 입니다. #4697

Open
wants to merge 4 commits into
base: donggada
Choose a base branch
from
Open

Conversation

donggada
Copy link

No description provided.

Copy link
Member

@testrace testrace left a comment

Choose a reason for hiding this comment

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

안녕하세요 동민님
3단계와 4단계를 한번에 진행해 주셨네요.
학습 효과를 위해 여러 단계를 한 번에 진행하시기 보다 한 단계씩 진행하시는것을 추천드립니다.
우선 단계별로 남아 있는 코드를 최종 형태로 정리해 주시면 좋을 것 같아요
관련해서 코멘트 남겼는데 확인해 주시고 다시 리뷰 요청 부탁드려요

Comment on lines +42 to +44
public String findWinnerCar() {
return "";
}
Copy link
Member

Choose a reason for hiding this comment

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

사용하지 않는 코드는 제거하면 좋을 것 같아요

Comment on lines +9 to +15
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String carNames = scanner.nextLine();
int moveCount = scanner.nextInt();
WinnerRacingCar racingCar = new WinnerRacingCar();
racingCar.race(racingCar.makeRacingCar(carNames), moveCount);
}
Copy link
Member

Choose a reason for hiding this comment

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

RacingCar, WinnerRacingcar 두 클래스 모두 main 메서드가 있네요 🤔
main메서드는 단계별로 추가하실 필요는 없을 것 같아요

Comment on lines +31 to +38
public List<Car> makeRacingCar(String carNames) {
String[] carNameArray = carNames.split(",");
ArrayList<Car> cars = new ArrayList<>();
for (int i = 0; i <carNameArray.length ; i++) {
cars.add(new Car(carNameArray[i]));
}
return cars;
}
Copy link
Member

Choose a reason for hiding this comment

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

위 코멘트와 마찬가지로 3단계, 4단계 별도로 구현하실 필요 없이 최종 단계의 코드만 남겨주세요
단계별로 요구사항이 추가/변경 되기 때문에 지난 단계의 코드를 따로 남겨두실 필요는 없을 것 같아요

Comment on lines +28 to +32
@Test
void 전진하는조건은0에서9사이에서random값을구한후_random값이4이상일경우이다() {
Car car = new Car("car", 0);
car.move();
}
Copy link
Member

Choose a reason for hiding this comment

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

자동차가 움직였다/움직이지 않았다 라는 사실을 검증하기 위해 assert 문이 필요하지 않을까요?

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