* Solve a single bridge Deal in PBN format. * * Public API documentation is maintained in the API headers. */
| 166 | * Public API documentation is maintained in the API headers. |
| 167 | */ |
| 168 | int STDCALL SolveBoardPBN( |
| 169 | DealPBN dlpbn, |
| 170 | int target, |
| 171 | int solutions, |
| 172 | int mode, |
| 173 | FutureTricks * futp, |
| 174 | int thrId) |
| 175 | { |
| 176 | Deal dl; |
| 177 | if (convert_from_pbn(dlpbn.remainCards, dl.remainCards) != RETURN_NO_FAULT) |
| 178 | return RETURN_PBN_FAULT; |
| 179 | |
| 180 | for (int k = 0; k <= 2; k++) |
| 181 | { |
| 182 | dl.currentTrickRank[k] = dlpbn.currentTrickRank[k]; |
| 183 | dl.currentTrickSuit[k] = dlpbn.currentTrickSuit[k]; |
| 184 | } |
| 185 | dl.first = dlpbn.first; |
| 186 | dl.trump = dlpbn.trump; |
| 187 | |
| 188 | int res = SolveBoard(dl, target, solutions, mode, futp, thrId); |
| 189 | return res; |
| 190 | } |
| 191 | |
| 192 | |
| 193 | /** |
no test coverage detected