Example #1
0
 protected void Pick(Card card)
 {
     if (card.Pair == CurrentPair)
     {
         if (UnsolvedPairs.Count == 0)
             Observer?.OnWon();
         else
         {
             ActivateNext();
             Observer?.OnMove(mistake: false);
         }
     }
     else Observer?.OnMove(mistake: true);
 }
Example #2
0
        protected virtual bool HandlePreviousSelection(Card card)
        {
            // Remove previous selection
            if (card != null) card.State = DefaultCardState;

            return true;
        }
Example #3
0
 protected override bool HandlePreviousSelection(Card card)
 {
     // Do not allow selection changes
     return (card == null);
 }