American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

1 PM – Python Game Dev – Gamas

April 15, 2023 @ 1:00 pm - 2:00 pm

Today We Did
  1. We continued with Tic Tac Toe android game.
  2. We learned how to use SharedPreference to pass information from one page to another page inside the app.
  3. We displayed the first player’s name into Game Activity statusBarLabel ui component.
Homework
  1. set “player1Score” label with first player’s name, the one that user enters in the landing page.
  2. set “player2Score” label with second player’s name, the one that user enters in the landing page.
  3. after every click on the board, change the statusBarLabel to show whose turn is it? If player 1 is “Gamas” and player 2 is “John”, then the statusBarLabel need to show “Gamas’ Turn” when the game starts. After Gamas click on the board, the statusBarLabel need to show “John’s turn” etc. You need to do this inside GameActivity.onClick(View view) method.

Details

Date:
April 15, 2023
Time:
1:00 pm - 2:00 pm
Event Categories:
,
Verified by MonsterInsights