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

Step3 - 지뢰 찾기(게임 실행) #421

Open
wants to merge 7 commits into
base: oyj7677
Choose a base branch
from

Conversation

oyj7677
Copy link

@oyj7677 oyj7677 commented Dec 27, 2023

Cell 객체에 메시지 전달 피드백 반영하였습니다.

MinesWeeperGame.kt의 startGame()에 불필요해 보이는 건 없지만 너무 많은 일을 하는 것 같습니다. 해당 부분 리펙토링에 관한 조언 부탁드리겠습니다.

Board.kt의 init에서 보드 생성과 지뢰 설치 및 주변 지뢰 정보를 세팅하고있습니다. 보드 자체가 2차원 배열이고 한단계의 들여쓰기만 하려다 보니 너무 작게 나누었나 하는 생각이 듭니다. 해당 부분에 대해 불필요한 부분이 있는지 혹은 개선해야할 부분이 있는지 봐주시면 감사하겠습니다.

게임 진행에 관해서 테스트 코드를 어떤 식으로 구성해야하는지 감이 잡히질 않습니다.

이 외에도 제가 파악하지 못한 부분 있다면 조언 부탁드리겠습니다.

감사합니다.

 - Cell 열림 여부 프로터티 추가.
 - Cell, 열림 여부에 따라 output
- 보드 선택 오픈 기능 구현
- MinesWeeperGame클래스 생성
chore : position x, y 순서 변경
- 인풋값 유효성 검사
- 승리, 패배 조건 구현
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.

None yet

1 participant