« All Events
5 PM – Android Game Dev – Gamas
August 12, 2023 @ 5:00 pm - 6:00 pm
Today We Did
- We reviewed the GameActivity.addClickListenerToAllBoxes()
- We started checkWinner() method.
- You can view my latest codes in here: https://gitlab.com/gsugiart/android-tic-tac-toe/-/tree/SAT-5PM-Gamas/app/src/main/java/com/ayclogic/tictactoe?ref_type=heads
Homework
- Inside GameActivity.java, inside checkWinner():
- Add code to check the tag of the first column is the same with the tag of the 2nd column.
- Add code to check the tag of the first column is the same with the tag of the 3nd column.
- Add code to check the tag of the first column is NOT empty String.
- If all three conditions above are met, System.out.println(“We have a winner”).