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

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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

Pjhn
Copy link

@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