MCPcopy Create free account
hub / github.com/dds-bridge/dds / parse_PLAY

Function parse_PLAY

library/tests/parse.cpp:455–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453
454
455bool 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
478bool parse_TRACE(

Callers 1

read_fileFunction · 0.85

Calls 3

get_head_elementFunction · 0.85
get_int_elementFunction · 0.85
strip_quotesFunction · 0.85

Tested by

no test coverage detected