티스토리 뷰
현재 나의 chessGame 프로젝트 진행상황이다. 역시나 어려울 것이라고 생각했지만, 생각보다 너무 어려운거 같다 ㅋㅋㅋㅋ.
바로아래에 있는 이 커밋이 현재 상황이다.
20250917/14:00_withoutKingFunction
20250917/14:00_withoutKingFunction · kodong885/chessGame@8005542
@@ -41,11 +41,58 @@ public Boolean checkCurrentPieceCanMove(ChessBoard chessBoard, ChessPiece curren
github.com
https://github.com/kodong885/chessGame.git
GitHub - kodong885/chessGame
Contribute to kodong885/chessGame development by creating an account on GitHub.
github.com
또, 현재 상황의 문제점을 진단해보겠다
1. getPiece랑 getCurrentPiece 메서드 역할 동일함
(차이)
- getPiece → 매개변수가 x, y 모두 Integer
- getCurrentPiece → 매개변수가 String[]
2. checkPieceAreSurroundedWithSameColor
→ current piece를 넣으면, 해당 current piece의 type에 따라서 주변이 같은 color로 둘러쌓여 있는지 확인.
( 현재 하나씩 비교 중 + outOfBoard 값 검사도 수행 중.... )
3. checkPutPiecePositionOnOneDirection 매서드의 putPiecePosition 매개변수에 유효성 검사(outOfChessBaord) 필요함!
후......... 일단 계속 만들어보겠다........ 힘들다...... 🧑💻🧑💻🙃🙃🙃😂😂
'코딩 프로젝트 & 설계' 카테고리의 다른 글
| 수학문제풀기 (0) | 2025.09.21 |
|---|---|
| 현재 chessGame 프로젝트 진행상황(2) (0) | 2025.09.21 |
| 자바 - 나의 첫 OOP + Layered Architecture 프로젝트(도서관 앱) 완성!!!! (0) | 2025.09.02 |
| 자바 프로젝트 - ( 그냥 잡담 ) 에러 폭탄을 만나다 (3) | 2025.09.01 |
| 레이어드 아키텍처 - UI흐름 / 비지니스 흐름 (1) | 2025.08.31 |