| 453 | |
| 454 | |
| 455 | bool parse_PLAY( |
| 456 | const vector<string>& list, |
| 457 | PlayTracePBN * playp) |
| 458 | { |
| 459 | if (list.size() != 3) |
| 460 | { |
| 461 | cout << "PLAY list does not have 3 elements: " << list.size() << endl; |
| 462 | return false; |
| 463 | } |
| 464 | |
| 465 | if (! get_head_element(list[0], "PLAY")) |
| 466 | return false; |
| 467 | |
| 468 | if (! get_int_element(list[1], playp->number, "PLAY number")) |
| 469 | return false; |
| 470 | |
| 471 | if (! strip_quotes(list[2], playp->cards, "PLAY string")) |
| 472 | return false; |
| 473 | |
| 474 | return true; |
| 475 | } |
| 476 | |
| 477 | |
| 478 | bool parse_TRACE( |
no test coverage detected