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 or s c h d for other languages.

For example:

  • A♠ => true or As => true
  • 5♦ => true or 5d => true
  • k♣ => false or kc => false
  • 8♧ => false or 8C => false

Good luck!)

Puzzles
Fundamentals
Games

Stats:

CreatedJul 16, 2020
Warriors Trained21
Total Skips0
Total Code Submissions46
Total Times Completed18
JavaScript Completions9
Python Completions12
TypeScript Completions2
PHP Completions1
Total Stars0
% of votes with a positive feedback rating38% of 13
Total "Very Satisfied" Votes3
Total "Somewhat Satisfied" Votes4
Total "Not Satisfied" Votes6
Total Rank Assessments13
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • KiparD Avatar
  • tonylicoding Avatar
Ad