Skip to content

[부산대 Android_박정훈] 미션 제출합니다.#34

Open
Pjhn wants to merge 12 commits intonext-step:mainfrom
Pjhn:main
Open

[부산대 Android_박정훈] 미션 제출합니다.#34
Pjhn wants to merge 12 commits intonext-step:mainfrom
Pjhn:main

Conversation

@Pjhn
Copy link
Copy Markdown

@Pjhn Pjhn commented Jun 9, 2024

2차 과제 미션 제출하겠습니다.

Pjhn added 12 commits June 8, 2024 20:29
- Add a button to change turns between black and white players
_ Add game over screen
- Allow users to place stones at the touched location
- Prevent placing a stone on already occupied position
- Change ImageView id from btn_black(white) to img_black(white)
- Change current player's turn
- Change UI element transparency based on player's turn
- Implement checkWin function to determine if there are 5 or more consecutive stones
- Implement countStone function to count consecutive stones
- Initialize game board on restart button click
- Display result screen upon game end
- Refactor code from onCreate to start method and add click listener
- Reduce indent depth by using initImgOpacity and setBoard functions
- Add testPlaceStone to verify stone placement logic
- Add testInit to ensure the game board init correctly
- Add testCountStone to check the stone counting logic in different directions
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.

1 participant