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

[자동차 경주 게임] 이태순 미션 제출합니다. #2

Open
wants to merge 30 commits into
base: main
Choose a base branch
from

Conversation

LTSGOD
Copy link

@LTSGOD LTSGOD commented Jan 16, 2023

No description provided.

LTSGOD and others added 30 commits January 14, 2023 15:02
- remove carPos, carNum

- change dynamic array -> ArrayList
- cars array -> List array, comfortable to input

- change other method implementation
- after a round, set position 0
- add carBase property not to use setPostiion

- delete 0 code in getPostion Because of Sort
- delete import List
- add SortCar method
- add HashMap Scoreboard, setScoreboard method, Score method
- Because of using sorted method remove all ScoreBoard method

- add sorted method to maintain order of cars

- add SortedCars property
- to record number of  win, add winNumProperty
- add getter, setter of winNum
- add // explain position Base
- after TryNum Round, it calculate who is the whinner
- 몇몇 메소드들 public -> private 전환
- 콘솔 입력 받는 부분 코드 단순화
- handlingRoundCoWinner, handlingFinalCoWinner 메서드로 분리
- 일부 public 접근 함수 private으로 접근권한 변환
- 멤버변수에 final 키워드 추가
- for 문 단순화
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 participant