void function ( ) { Player loc0 = one ; while ( ! isDone ( ) ) { displayState ( ) ; waitForUser ( ) ; takeTurn ( loc0 ) ; loc0 = nextPlayer ( loc0 ) ; } one . displayScore ( ) ; two . displayScore ( ) ; }
plays the game . concode_field_sep Hand drawPile concode_elem_sep Hand discardPile concode_elem_sep Scanner in concode_elem_sep Player one concode_elem_sep Player two concode_field_sep void displayState concode_elem_sep void reshuffle concode_elem_sep Player nextPlayer concode_elem_sep void waitForUser concode_elem_sep void takeTurn concode_elem_sep void main concode_elem_sep Card draw concode_elem_sep boolean isDone