« All Events
1 PM – Android Game Dev – Gamas
April 1, 2023 @ 1:00 pm - 2:00 pm
Today We Did
- We added click listener to all 9 boxes without doing code duplication.
- We display circle image to the box that the user click.
Homework
- No class next week (04/08) because of Easter weekend.
- Inside GameActivity.onClick(View view) method add codes
- when it is “player1” turn display cross image on the box.
- when it is “player2” turn display circle image on the box.
- Also alternate “whichPlayerTurn” between “player1” and “player2”.