Skip to content

Doyeon/week1 과제 제출#54

Open
dp44rk wants to merge 12 commits intomainfrom
doyeon/week1
Open

Doyeon/week1 과제 제출#54
dp44rk wants to merge 12 commits intomainfrom
doyeon/week1

Conversation

@dp44rk
Copy link

@dp44rk dp44rk commented Mar 31, 2025

Car.java

  • 자동차 이름이 빈 값이 아니고, 5자를 초과하지 않으며, 쉼표(,)를 포함하지 않도록 검증합니다.
  • 자동차 객체를 나타내는 메소드와 변수들을 포함합니다.

Application.java

  • 사용자로부터 자동차 이름과 시도 횟수를 입력받습니다.
  • 시도 횟수(TryCount)를 검증하여 양의 정수만 허용합니다.
  • 각 자동차가 랜덤한 확률로 전진하며, 최종 우승자를 출력합니다.

@dp44rk dp44rk linked an issue Mar 31, 2025 that may be closed by this pull request
Copy link

@macqueen0987 macqueen0987 left a comment

Choose a reason for hiding this comment

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

깔끔하게 잘 하신 것 같습니다!
자동차 이름의 유효성 검사가 자동가 클래스 내부에 있는부분이 좋았습니다. 제가 미처 생각하지 못했던 부분입니다.

@hyungin0505
Copy link
Member

자동차 입력을 쉼표로 split하는데 어떤 경우에 자동차 이름에 쉼표가 들어가는지 궁금합니다

Copy link

@glucosei glucosei left a comment

Choose a reason for hiding this comment

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

예외처리와 Car클래스가 굉장히 깔끔하게 된 것 같습니다. Application 클래스의 책임을 나눌 수 있으면 좋을 것 같습니다.

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.

[1주차] 레이싱카 과제 제출 - 박도연

4 participants