Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Pokémon guessing game logic using Vue 3 and API integration #46

Closed
dylanson25 opened this issue Oct 8, 2024 · 0 comments · Fixed by #49
Closed

Implement Pokémon guessing game logic using Vue 3 and API integration #46

dylanson25 opened this issue Oct 8, 2024 · 0 comments · Fixed by #49
Assignees

Comments

@dylanson25
Copy link
Owner

dylanson25 commented Oct 8, 2024

Description:

We need to implement the core logic for a Pokémon guessing game using Vue 3. This will involve creating a composable that handles the game state, fetches Pokémon data from an external API, and provides functionality for gameplay. The game should present the user with a set of Pokémon to choose from, randomly select one as the correct answer, and allow the user to guess which one it is.

Key Features:

  1. Game Status Handling: Track and update the status of the game, including states like "Playing," "Won," and "Lost."
  2. Fetching Pokémon Data: Use an external API to fetch the first 151 Pokémon, extract relevant details (name and ID), and shuffle the list.
  3. Random Pokémon Selection: Randomly select one Pokémon from a subset of options for the user to guess.
  4. Game Rounds: Each round should present a limited number of Pokémon (e.g., 4) for the player to choose from.
  5. Check Answer: Implement logic to check if the player's guess is correct or not, and update the game status accordingly.
  6. Winning Feedback: If the player guesses correctly, display confetti as a visual reward.
  7. Loading State: Implement a loading state that indicates when Pokémon data is being fetched.
  8. Composable Structure: Return reactive properties and methods that can be easily used in Vue components.
@dylanson25 dylanson25 self-assigned this Oct 10, 2024
@dylanson25 dylanson25 changed the title Create pokemon composable Implement Pokémon guessing game logic using Vue 3 and API integration Oct 10, 2024
dylanson25 added a commit that referenced this issue Oct 10, 2024
dylanson25 added a commit that referenced this issue Oct 10, 2024
dylanson25 added a commit that referenced this issue Oct 10, 2024
…sing-game-logic-using-vue-3-and-api-integration

[#46] -  Feat implement pokémon guessing game logic using vue 3 and api integration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant