/* indent:4  tabsize:8  font:fixed-width */


#import "SpiderSuitDelegate.h"
//#import "../Solitaire/Solitaire.h"
#import <Solitaire/CardSet.h>
#import "Spider.h"

@implementation SpiderSuitDelegate

- (BOOL) canAcceptPile:(CardPile*)aCardPile from:sender in:(CardPileView*)aCardPileView
{
    if ([[aCardPileView cardPile] cardCount] == 0)
    {
        if ([aCardPile cardCount] == 13)
          {
            return YES;
          }
    }
    return NO;
}


- (void) acceptPile:(CardPile*)aCardPile in:(CardPileView*)aCardPileView
{
    [[Spider sharedInstance] checkForWin]; 
}

@end
