-
Notifications
You must be signed in to change notification settings - Fork 416
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
[java-4주차] 유호연 체스 미션 제출합니다 #820
Open
yuho9
wants to merge
17
commits into
woowacourse:main
Choose a base branch
from
yuho9:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
요구사항
1단계
Array List 로 각 행 초기화 하기
블랙과 화이트 빈공간 으로 나누어 초기화
출력시 순서가 아래에서 위로 보이도록 출력
열의 이름은 abcdefgh 로 인식되독로 하기
2단계
체스게임 시작을 알리는 문장 출력
start end move 중 입력 받음
end가 입력될때까지 반복
현재 상태의 체스판 출력
move 입력시 이동시킬 말의 위치와 이동시킬 곳의 위치 같이 입력
move (위치) (위치) 형태의 문자열을 분리
(위치) 또한 열과 행으로 분리
열의 이름은 문자형태이므로 이를 변환해야함
이동시킬 말의 위치는 비우고
이동시킬 곳의 위치에 말이름으로 채움
3단계
King이 잡혔는지 확인
둘중 한명의 King이 잡힌경우 보유한 쪽이 승리
점수 출력 안함
둘다 King이 있는경우
리스트에 있는 모든 문자를 대문자와 소문자로 나누어 따로 저장
각 말을 점수로 변환해 합함
세로줄의 같은색 폰이 있는경우 찾음
있을경우 합에서 0.5점을 뺌
점수(이름) 형태로 더하는 식과 합을 출력
실행 결과 영상
https://drive.google.com/drive/folders/1316qDlUOu2umVqn3uqNBOaBYFkbkMKBS?usp=sharing
에러처리
신경쓴 부분
고민한 부분 (질문하고 싶은 부분)
구현중 어려웠던 부분