Open
Conversation
turn 변수를 boolean 형으로 추가해서 클릭할 때마다 turn이 바껴서 흑백돌이 번갈아서 나타남
비어있는 보드인지 tag를 통해 확인한다
- changeTurn 위치를 아래로 내림 - Array와 row,column을 만들고 stoneColor 함수를 만들어서 돌색 저장
5개 이상의 같은 색의 돌이 놓일 경우를 체크하는 함수를 만듬 Log로 확인
- 승리를 표시하는 TextView - 다시시작하기를 나타내는 Button을 만듬
승자가 정해질 경우 승리 메시지를 view에 나타냄 checkWin 코드 수정
- checkWin 함수 수정
다시 시작하기 버튼을 누르면 보드 초기화
승자가 결정되면 더 이상 보드에 돌을 놓을 수 없는 gameOver 변수 추가
This file contains hidden or 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.
미션 제출합니다!