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

Method rankToInt

src/main/java/icybee/solver/Card.java:197–216  ·  view source on GitHub ↗
(char rank)

Source from the content-addressed store, hash-verified

195 }
196
197 static int rankToInt(char rank)
198 {
199 switch(rank)
200 {
201 case '2': return 2;
202 case '3': return 3;
203 case '4': return 4;
204 case '5': return 5;
205 case '6': return 6;
206 case '7': return 7;
207 case '8': return 8;
208 case '9': return 9;
209 case 'T': return 10;
210 case 'J': return 11;
211 case 'Q': return 12;
212 case 'K': return 13;
213 case 'A': return 14;
214 default: return 2;
215 }
216 }
217
218 static String[] getRanks(){
219 return new String[]{"2","3","4","5","6","7","8","9","T","J","Q","K","A"};

Callers 1

strCard2intMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected