Puzzle 2 - Welcome user
Let’s add a welcome message that the user can see when they start your app!
Go to MainActivity.kt and find // PUZZLE 2
in the code and write a toast that welcomes the user to your game with “Welcome to Tic-Tac-Toe!”. Now press the play button (►) at the top of Android Studio and your app should look like this:

HELP! I got a lot of red text!
If you see any red text, you have encountered some errors! Please ask for help. Beware of the following when coding in Android:
- The
t
inToast
is capitalized. - Make sure the sentence you wish to show is surrounded in quotation marks, and that the parantheses are in the right place.
- Do not delete any curly braces
{
or}
.