« All Events
6 PM – Android Game Dev – Gamas
May 7 @ 6:00 pm - 7:00 pm
Today We Did
- We finished the 3 by 3 grids for the game board.
- We added clickListeners for all the 9 boxes.
Homework
- When you first enter the Main page, set player1 name on the red Status bar textView.
- As you click on the box, it needs to switch the turn to player2 and reflect player2 name on the Status bar textView.
- You need to continue doing this alternating between player1 and player2 turns and displaying the names in status bar.
- Hint, you need to declare a class attribute to keep track of player’s turn.
- Look at screenshot below, you do not need to do the X and O image yet on the board. You just make sure the player’s turn is displayed in status bar.
