American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

1 PM – Android Game Dev – Gamas

May 13, 2023 @ 1:00 pm - 2:00 pm

Homework
  1. When user click “RESET GAME” button, set statusBarLabel to “<player 1 name> turn”.
  2. When we already have a winner, prevent user to click further.
    1. Create two more variables in Constants.java:
      1. GAME_IN_SESSION = 1
      2. GAME_WIN = 2
      3. GAME_TIE = 3
    2. Inside GameActivity.java, you need to add one more attribute:
      1. private int gameMode = GAME_IN_SESSION
    3. When someone win set gameMode = GAME_WIN
    4. Add code in onClick(View) if gameMode == GAME_WIN, prevent changing the player’s icon.

Details

Date:
May 13, 2023
Time:
1:00 pm - 2:00 pm
Verified by MonsterInsights