5 cartes au départ, plusieurs combinaisons possibles à l’arrivée…
Bienvenue à Las Vegas ! Ville du vice, les tables de Poker tournent à plein régime ! Avant d’aller t’asseoir à une de ses tables et de te faire plumer par les « requins » des lieux, je te propose de découvrir tranquillement les différentes combinaisons de cartes qui permettent de déterminer la « force » d’une main.
Une main ici, c’est 5 cartes différentes. Plusieurs seront proposées dans la donnée « mains ». Chaque main se présente sous la forme d’une chaine de caractères. Chaque carte est séparée par un espace. Par exemple :
Dans ce premier exercice, on laisse les couleurs de côté (trèfle, carreau, pique, coeur).
L’objectif est d’identifier les combinaisons suivantes, chacune donnant un nombre de points :
Tu dois retourner le nombre de points total obtenus avec toutes les mains.
challenge code for resolution via API: POKER_1
Some resources to help you:
Data and algorithmic logic Methodologies Corrections
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 progressDevelop 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!
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 ;)
No answer yet for this challenge, but we&'re working on it! Follow us to be informed of the release!
Programming concept(s) that can be used to solve this challenge: Conditions, Tableaux, Programmation Orientée Objet, Booléens, Fonctions
Other challenges to complete