Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

askthedev.com Logo askthedev.com Logo
Sign InSign Up

askthedev.com

Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Ubuntu
  • Python
  • JavaScript
  • Linux
  • Git
  • Windows
  • HTML
  • SQL
  • AWS
  • Docker
  • Kubernetes
Home/ Questions/Q 6313
In Process

askthedev.com Latest Questions

Asked: September 25, 20242024-09-25T11:25:38+05:30 2024-09-25T11:25:38+05:30

Type Clash: Decoding Dual-Type Effectiveness in Pokémon Battles

anonymous user

Okay, so I’ve been diving deep into Pokémon types lately, and I’m getting a bit lost in all the nuances of the type advantages and disadvantages. You know how some Pokémon have dual types? It really confuses me how their strengths and weaknesses stack up. I thought it would be fun to create a little challenge based on this!

Here’s the problem I’m facing. I want to figure out how to calculate the effectiveness of attacks based on dual-type Pokémon, but I’m not sure how to manage all the different combinations. For example, let’s say we have a Steel and Fairy-type Pokémon. Normally, Steel is resistant to a bunch of things like Dragon and Fairy moves, while Fairy has its own peculiarities, like being strong against Dark and Dragon moves.

So, if a Water-type Pokémon uses a Dragon-type move against our Steel/Fairy friend, what’s the outcome? Is it super effective, not effective, or just normal effectiveness? (I’m pretty sure it’s not very effective, but I’d love some clarity!)

Here’s the twist: I want you all to create a little piece of code that takes a Pokémon type (or dual types) and an attacking move type, and outputs whether the attack is “super effective,” “not very effective,” or “normal effectiveness.”

And for bonus points, how about adding some flair? If you could print out an explanation for why the effectiveness turns out that way, that would be awesome!

I’m super curious about the different ways you might tackle this. How would you structure it? What kind of logic would you use to break down the effectiveness? I feel like I’m kind of lost in the sea of types, and your creative solutions could help illuminate this whole mess. Let’s see what y’all can come up with!

Coding ChallengePokemon
  • 0
  • 0
  • 2 2 Answers
  • 0 Followers
  • 0
Share
  • Facebook

    Leave an answer
    Cancel reply

    You must login to add an answer.

    Continue with Google
    or use

    Forgot Password?

    Need An Account, Sign Up Here
    Continue with Google

    2 Answers

    • Voted
    • Oldest
    • Recent
    1. anonymous user
      2024-09-25T11:25:39+05:30Added an answer on September 25, 2024 at 11:25 am






      Pokémon Type Effectiveness Calculator


      Pokémon Type Effectiveness Calculator

      Enter the type of your Pokémon and the attack type to see the effectiveness!




        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. anonymous user
      2024-09-25T11:25:40+05:30Added an answer on September 25, 2024 at 11:25 am



      Pokémon Type Effectiveness Calculator


      Pokémon Type Effectiveness Calculator





        • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    Related Questions

    • What are the advantages and characteristics of each of the Eeveelutions in Pokémon?
    • How can players gain access to the clothing shop in Pokémon X and Y?
    • Is there a method to transfer Pokémon from a ROM to a physical cartridge?
    • What factors influence the specific type of a Pokémon's Hidden Power in Pokémon GO?
    • Is it possible to evolve a Pancham in Pokémon Sword if it has already reached level 32 or higher?

    Sidebar

    Related Questions

    • What are the advantages and characteristics of each of the Eeveelutions in Pokémon?

    • How can players gain access to the clothing shop in Pokémon X and Y?

    • Is there a method to transfer Pokémon from a ROM to a physical cartridge?

    • What factors influence the specific type of a Pokémon's Hidden Power in Pokémon GO?

    • Is it possible to evolve a Pancham in Pokémon Sword if it has already reached level 32 or higher?

    • What are the methods for capturing Charizard, Bulbasaur, Squirtle, and Pikachu in Pokémon Platinum?

    • Does Necrozma have improved CP when it is in its fused forms?

    • What legendary shiny Pokémon can players legitimately acquire in Pokémon Sword and Shield?

    • Does Pokémon game progress get stored on the game cartridge itself or is it saved to the 3DS console being used?

    • What could be the reasons for not being able to obtain the Cut HM in Pokémon Green?

    Recent Answers

    1. anonymous user on How do games using Havok manage rollback netcode without corrupting internal state during save/load operations?
    2. anonymous user on How do games using Havok manage rollback netcode without corrupting internal state during save/load operations?
    3. anonymous user on How can I efficiently determine line of sight between points in various 3D grid geometries without surface intersection?
    4. anonymous user on How can I efficiently determine line of sight between points in various 3D grid geometries without surface intersection?
    5. anonymous user on How can I update the server about my hotbar changes in a FabricMC mod?
    • Home
    • Learn Something
    • Ask a Question
    • Answer Unanswered Questions
    • Privacy Policy
    • Terms & Conditions

    © askthedev ❤️ All Rights Reserved

    Explore

    • Ubuntu
    • Python
    • JavaScript
    • Linux
    • Git
    • Windows
    • HTML
    • SQL
    • AWS
    • Docker
    • Kubernetes

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.