예제 #1
0
 public Card(string cardCode)
 {
     Rank = Ranks.GetByCode(cardCode.Substring(0, cardCode.Length - 1));
     Suit = Suits.GetByChar(cardCode[cardCode.Length - 1]);
 }
예제 #2
0
파일: Card.cs 프로젝트: nickhester/Poker
 public Card(Numbers number, Suits suit)
 {
     Number = number;
     Suit   = suit;
 }
예제 #3
0
파일: Hand.cs 프로젝트: Sedum/Poker-kata
 public Card(int value, Suits suit)
 {
     Value = value;
     Suit  = suit;
 }