Algorithm for Memory:
- Start
- Shuffle deck of 24 cards
- Lay out deck face down in row
- Pick card 1-24 for card 1 that is not flipped over, flip.
- Pick card 1-24 that is not card 1 and not flipped over, flip.
- If card 1 = card 2, leave face up. Display “awesome!”. If not, continue to step 7
- If card 1 =/= card 2, flip back over. Display “try again”
- If cards remain flipped over, return to step 4. If all cards are flipped over, continue.
- End
Algorithm for Under 7 over 7:
- Start
- Input starting amount of money
- Place bet. Bet must be less than or equal to money
- Guess if roll sum is under 7, over 7, or equal to 7.
- If guess = roll sum, add bet to money. If not, continue.
- If guess =/= roll sum, subtract bet from money.
- If money > 0, return to step 3
- If money = 0, continue.
- end