Retired
Card Checker -- World Series of Poker -- [Task 0] (retired)
9 of 18KiparD
Description:
Card checker
Legend:
You have two passions in life - poker and coding, so when your friend asked you to help him on his poker series in the Bahamas you immediately pack up and flew.
He said that someone was going to cheat and you had to program a specific machine to see if the card is real.
Your task will be:
Write a function checkCard
it gets one parameter card
, so it wants to confirm that all cards are going to be correct. Don't worry it's always a string with two chars and return boolean true/false
.
- Please use cards format
2 3 4 5 6 7 8 9 T J Q K A
- and suit format
♠ ♣ ♥ ♦
for JavaScript ors c h d
for other languages.
For example:
A♠ => true
orAs => true
5♦ => true
or5d => true
k♣ => false
orkc => false
8♧ => false
or8C => false
Good luck!)
Puzzles
Fundamentals
Games
Similar Kata:
Stats:
Created | Jul 16, 2020 |
Warriors Trained | 21 |
Total Skips | 0 |
Total Code Submissions | 46 |
Total Times Completed | 18 |
JavaScript Completions | 9 |
Python Completions | 12 |
TypeScript Completions | 2 |
PHP Completions | 1 |
Total Stars | 0 |
% of votes with a positive feedback rating | 38% of 13 |
Total "Very Satisfied" Votes | 3 |
Total "Somewhat Satisfied" Votes | 4 |
Total "Not Satisfied" Votes | 6 |
Total Rank Assessments | 13 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |