Skip to content

Latest commit

 

History

History

03-Guess the Flag

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Guess the Flag

Project 2
Author: Zai Santillan
Dec 9, 2023 - Friday

<< 02-Challenge Day | 04-Views and Modifiers >>

📝 What I Learned

Stacks, Buttons, Images, Alerts, LinearGradient

Excalidraw - Day 20 to Day 22

🏆 Challenges

  1. Add an @State property to store the user’s score, modify it when they get an answer right or wrong, then display it in the alert and in the score label.

    🔗 Solution

  2. When someone chooses the wrong flag, tell them their mistake in your alert message – something like “Wrong! That’s the flag of France,” for example.

    🔗 Solution

  3. Make the game show only 8 questions, at which point they see a final alert judging their score and can restart the game.

    🔗 Solution

📷 Screenshots

Mockup - GuessTheFlag

Demo - GuessTheFlag

Resources

<< 02-Challenge Day | 04-Views and Modifiers >>