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

5단계 - 자동차 경주(리팩토링) #5184

Open
wants to merge 30 commits into
base: sudo-init
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
69a9998
split study test
sudo-init Nov 1, 2023
cc3c46d
split study test
sudo-init Nov 1, 2023
61eb83c
step 1 practice
sudo-init Nov 2, 2023
5bd4cbd
first commit
sudo-init Nov 2, 2023
bd57b26
step2 mission completed.
sudo-init Nov 3, 2023
f479491
step2 refactoring completed.
sudo-init Nov 6, 2023
bc303b0
step2 feedback is reflected.
sudo-init Nov 7, 2023
befcc95
tmp(backup)
sudo-init Nov 7, 2023
99a12a0
tmp(backup)
sudo-init Nov 8, 2023
c6f7504
feat(feature) - 모든 기능 구현
sudo-init Nov 9, 2023
4a7efd7
Merge branch 'sudo-init' into step3
sudo-init Nov 9, 2023
7177fcf
refactory and test(add moveCar Test etc..)
sudo-init Nov 10, 2023
7d4799e
refactor (#5075): 피드백 요청사항 반영 및 리팩토링, 테스트 코드 수정
sudo-init Nov 13, 2023
e01686f
feat: 입력한 이름 개수 만큼 자동차 생성
sudo-init Nov 15, 2023
7bb20e5
feat: 자동차 이름5자리 제한 기능 추가
sudo-init Nov 15, 2023
e2bfae9
refactor and test: 자동차 이름을 관리하는 객체 정의
sudo-init Nov 15, 2023
3512e4f
chore
sudo-init Nov 15, 2023
885aa7a
feat and refactor: 출력 결과에 자동차 이름이 출력되도록
sudo-init Nov 16, 2023
14dd353
backup
sudo-init Nov 16, 2023
57963e5
Tmp backup
sudo-init Nov 17, 2023
0d3d66e
refactor and feat: 우승자 선정 및 출력 기능 추가 & 리팩토링
sudo-init Nov 20, 2023
b8cbdb7
Merge branch 'sudo-init' into step4
sudo-init Nov 20, 2023
1aac7df
commit test
sudo-init Nov 22, 2023
543acdc
Merge branch 'step4' of https://github.com/sudo-init/java-racingcar i…
sudo-init Nov 22, 2023
2b1933c
fix: 잘못된 merge에 대한 수정
sudo-init Nov 22, 2023
a83d263
chore: 자동차 이름 예외 발생
sudo-init Nov 22, 2023
1b388ca
refactoring: RaceResult 클래스 삭제
sudo-init Nov 25, 2023
524dea6
refactor and test: Name과 Location 클래스 생성
sudo-init Nov 27, 2023
89471d7
Merge branch 'sudo-init' into step5
sudo-init Nov 27, 2023
ffd0a88
chore: merge conflict resolved.
sudo-init Nov 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
commit test
sudo-init committed Nov 22, 2023
commit 1aac7dffb95b743632718dcf7f82abeda88f9e36
6 changes: 0 additions & 6 deletions src/main/java/study/race/view/ReceiveInputValue.java
Original file line number Diff line number Diff line change
@@ -5,19 +5,13 @@
public class ReceiveInputValue {

private Scanner scanner;
private final String CAR_INT_INPUT_MESSAGE = "Enter the number of cars.";
private final String CAR_STRING_INPUT_MESSAGE = "Enter the names of the cars to race(Separation by comma).";
private final String ROUND_INPUT_MESSAGE = "Enter how many rounds are we going to do.";

public ReceiveInputValue() {
this.scanner = new Scanner(System.in);
}

public int receiveInputValueForCar() {
System.out.println(CAR_INT_INPUT_MESSAGE);
return this.scanner.nextInt();
}

public String receiveInputValueForCarNames() {
System.out.println(CAR_STRING_INPUT_MESSAGE);
return this.scanner.nextLine();