| 476 | |
| 477 | |
| 478 | bool parse_TRACE( |
| 479 | const vector<string>& list, |
| 480 | SolvedPlay * solvedp) |
| 481 | { |
| 482 | if (list.size() < 2) |
| 483 | { |
| 484 | cout << "TRACE list does not have 2+ elements: " << list.size() << endl; |
| 485 | return false; |
| 486 | } |
| 487 | |
| 488 | if (! get_head_element(list[0], "TRACE")) |
| 489 | return false; |
| 490 | |
| 491 | if (! get_int_element(list[1], solvedp->number, "TRACE number")) |
| 492 | return false; |
| 493 | |
| 494 | for (unsigned i = 0; i < static_cast<unsigned>(solvedp->number); i++) |
| 495 | if (! get_int_element(list[2+i], solvedp->tricks[i], "TRACE element")) |
| 496 | return false; |
| 497 | |
| 498 | return true; |
| 499 | } |
| 500 | |
| 501 | |
| 502 | bool parseable_GIB(const string& line) |
no test coverage detected