Visual illustration of the code challenge: Team Pokemon

Team Pokemon

Tu veux être le meilleur dresseur ? On va voir si tu peux constituer une Team de Pokemons qui tient la route !

Coding in the sandbox You must be logged in to access the sandbox.

Mission

C’est bien connu, ce qui caractérise un pokemon, c’est son type : eau, feu, herbe, glace, électricité (Pika, Pika !), etc.

On va voir combien d’équipes de Pokemon tu peux constituer avec tous les pokemons à ta disposition.

Règles

Voici les règles :

  • Une équipe se compose de 4 pokemons.
  • Il doit y avoir 1 pokemon de chaque type de « base ».
  • Il doit y avoir 1 pokemon de type « rare ».
  • Les types de base : Eau, Feu, Herbe.
  • Les types rares : Air, Poison, Glace, Psychique, Insecte.

Tu dois retourner le nombre d’équipes maximum que tu peux constituer.


Précision : On est sur une difficulté 1, je cherche bien le maximum d’équipes possibles que je peux constituer en 1 fois. Donc si j’ai 8 pokemons, je peux faire 0, 1 ou 2 équipes maximum.

Solve the challenge

To code this challenge, several possibilities:
- Want to start coding right away? Use the online Sandbox.
- Want to work in your favorite editor? Organize your code well, test, check out our API documentation.
- You can also copy/paste a dataset below.

challenge code for resolution via API: POKEMON_1

Some resources to help you:
Data and algorithmic logic Methodologies Corrections

Support for resolution

Progress through challenges using our resolution aids: tools, techniques and advice to help you overcome the most complex programming challenges with methodology, confidence and creativity.

Dataset and algorithmic logic

Based on the data and the expected response, use the process to determine the logic to implement.

Show data and progress

Methodologies

Develop a structured approach with our solving guides. Work on specific concepts such as object-oriented programming or unit testing to improve your coding style and progress.

No methodology yet for this challenge, but we are working on it! Follow us to be informed of the release!


Corrections

The corrections allow you to discover certain technical concepts but will also give you a solution to the challenge. Code the challenge yourself before consulting the corrections ;)

Programming concept(s) that can be used to solve this challenge: Conditions, Tableaux, Booléens

Keep coding

Other challenges to complete

Intermediate
Combinaisons du poker #1

Combinaisons du poker #1

5 cartes au départ, plusieurs combinaisons possibles à l’arrivée…

Calculation
Beginner
Braquage du coffre #2

Braquage du coffre #2

Le professeur et son équipe de braqueurs sont en plein casse… Mais la police arrive…

Calculation
Beginner
Le Sac de l’Aventurier #1

Le Sac de l’Aventurier #1

Aide notre aventurier à remplir son sac avant de partir à l’aventure !

Calculation Corrigé disponible : Python