Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Mamadou psuedo code
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ First three rounds:

(6) Start the games by flipping a coin to determine who will put the second card on the center;

(7) If{ <<Player1>> is chosen, they must place a <<card center>> that is similar in suit or in number to the <<center card>>;

(7) If{ <<Player1>> is chosen, they must place a <<card center>> that is similar in suit or in number to the <<center card>>; // what if they don't have a card that meets these conditions?
/*
if( <<Player1>> does NOT have a valid card) {
<<Player1>> pick up two <<cards>> from side pile;
}
*/
(8) <<Player1>> puts a card that is higher <<value>>, which forces player 2 to either pick up two <<cards> from the side pile or pick up all the center pile;

(9) <<Player2>> chooses to take the center pile;}
Expand Down