MCPcopy Create free account
hub / github.com/bupticybee/TexasHoldemSolverJava / suitToInt

Method suitToInt

src/main/java/icybee/solver/Card.java:222–232  ·  view source on GitHub ↗
(char suit)

Source from the content-addressed store, hash-verified

220 }
221
222 static int suitToInt(char suit)
223 {
224 switch(suit)
225 {
226 case 'c': return 0; // 梅花
227 case 'd': return 1; // 方块
228 case 'h': return 2; // 红桃
229 case 's': return 3; // 黑桃
230 default: return 0;
231 }
232 }
233
234 public static String[] getSuits(){
235 return new String[]{"c","d","h","s"};

Callers 1

strCard2intMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected