MCPcopy Create free account
hub / github.com/dds-bridge/dds / is_a_card

Function is_a_card

examples/hands.cpp:649–692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

647
648
649auto is_a_card(char cardChar) -> int
650{
651 switch (cardChar)
652 {
653 case '2':
654 return 2;
655 case '3':
656 return 3;
657 case '4':
658 return 4;
659 case '5':
660 return 5;
661 case '6':
662 return 6;
663 case '7':
664 return 7;
665 case '8':
666 return 8;
667 case '9':
668 return 9;
669 case 'T':
670 return 10;
671 case 'J':
672 return 11;
673 case 'Q':
674 return 12;
675 case 'K':
676 return 13;
677 case 'A':
678 return 14;
679 case 't':
680 return 10;
681 case 'j':
682 return 11;
683 case 'q':
684 return 12;
685 case 'k':
686 return 13;
687 case 'a':
688 return 14;
689 default :
690 return 0;
691 }
692}
693

Callers 1

convert_pbnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected