|
42 | 42 | }, |
43 | 43 | "expected": ["3S 5H 6S 8D 7H"] |
44 | 44 | }, |
| 45 | + { |
| 46 | + "uuid": "da01becd-f5b0-4342-b7f3-1318191d0580", |
| 47 | + "description": "winning high card hand also has the lowest card", |
| 48 | + "property": "bestHands", |
| 49 | + "input": { |
| 50 | + "hands": ["2S 5H 6S 8D 7H", "3S 4D 6D 8C 7S"] |
| 51 | + }, |
| 52 | + "expected": ["2S 5H 6S 8D 7H"] |
| 53 | + }, |
45 | 54 | { |
46 | 55 | "uuid": "f7175a89-34ff-44de-b3d7-f6fd97d1fca4", |
47 | 56 | "description": "one pair beats high card", |
|
60 | 69 | }, |
61 | 70 | "expected": ["2S 4H 6C 4D JD"] |
62 | 71 | }, |
| 72 | + { |
| 73 | + "uuid": "b3acd3a7-f9fa-4647-85ab-e0a9e07d1365", |
| 74 | + "description": "both hands have the same pair, high card wins", |
| 75 | + "property": "bestHands", |
| 76 | + "input": { |
| 77 | + "hands": ["4H 4S AH JC 3D", "4C 4D AS 5D 6C"] |
| 78 | + }, |
| 79 | + "expected": ["4H 4S AH JC 3D"] |
| 80 | + }, |
63 | 81 | { |
64 | 82 | "uuid": "935bb4dc-a622-4400-97fa-86e7d06b1f76", |
65 | 83 | "description": "two pairs beats one pair", |
|
141 | 159 | }, |
142 | 160 | "expected": ["4S AH AS 8C AD"] |
143 | 161 | }, |
| 162 | + { |
| 163 | + "uuid": "26a4a7d4-34a2-4f18-90b4-4a8dd35d2bb1", |
| 164 | + "reimplements": "eb856cc2-481c-4b0d-9835-4d75d07a5d9d", |
| 165 | + "description": "with multiple decks, two players can have same three of a kind, ties go to highest remaining cards", |
| 166 | + "comments": [ |
| 167 | + "Ensure that high cards are checked in the correct order (high to low)." |
| 168 | + ], |
| 169 | + "property": "bestHands", |
| 170 | + "input": { |
| 171 | + "hands": ["5S AH AS 7C AD", "4S AH AS 8C AD"] |
| 172 | + }, |
| 173 | + "expected": ["4S AH AS 8C AD"] |
| 174 | + }, |
144 | 175 | { |
145 | 176 | "uuid": "a858c5d9-2f28-48e7-9980-b7fa04060a60", |
146 | 177 | "description": "a straight beats three of a kind", |
|
213 | 244 | }, |
214 | 245 | "expected": ["4H 7H 8H 9H 6H"] |
215 | 246 | }, |
| 247 | + { |
| 248 | + "uuid": "e04137c5-c19a-4dfc-97a1-9dfe9baaa2ff", |
| 249 | + "reimplements": "4d90261d-251c-49bd-a468-896bf10133de", |
| 250 | + "description": "both hands have a flush, tie goes to high card, down to the last one if necessary", |
| 251 | + "comments": [ |
| 252 | + "Ensure that high cards are checked in the correct order (high to low)." |
| 253 | + ], |
| 254 | + "property": "bestHands", |
| 255 | + "input": { |
| 256 | + "hands": ["2H 7H 8H 9H 6H", "3S 5S 6S 7S 8S"] |
| 257 | + }, |
| 258 | + "expected": ["2H 7H 8H 9H 6H"] |
| 259 | + }, |
216 | 260 | { |
217 | 261 | "uuid": "3a19361d-8974-455c-82e5-f7152f5dba7c", |
218 | 262 | "description": "full house beats a flush", |
|
0 commit comments