Approach hintTry it first, then revealHide
Keep indices at both ends of the row; on each turn the current player takes the larger end card and that index moves inward. Alternate which score receives the card.
Keep indices at both ends of the row; on each turn the current player takes the larger end card and that index moves inward. Alternate which score receives the card.