티스토리 뷰

현재 나의 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) 필요함!

 

 

후......... 일단 계속 만들어보겠다........ 힘들다...... 🧑‍💻🧑‍💻🙃🙃🙃😂😂

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG more
«   2026/04   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30
글 보관함