You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
945 B
32 lines
945 B
using System;
|
|
using System.Collections.Generic;
|
|
using TheGameExtreme.model.card;
|
|
using TheGameExtreme.model.piles;
|
|
|
|
namespace TheGameExtreme.model.gameActions.abstractRules
|
|
{
|
|
public abstract class TerminerSonTour : GameAction
|
|
{
|
|
protected TerminerSonTour(Piles ListOrderedStacks) : base(ListOrderedStacks)
|
|
{
|
|
}
|
|
|
|
public abstract bool end(List<Card> CurrentHand, List<Card> CurrentCardPlayed);
|
|
|
|
public bool Test(List<Card> CurrentHand)
|
|
{
|
|
if (CurrentHand.Count != 0)
|
|
{
|
|
List<Card> playableCard = new List<Card>();
|
|
tryToFindSoluce(playableCard, CurrentHand);
|
|
return testEndGame(playableCard);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
protected abstract void tryToFindSoluce(List<Card> playableCard, List<Card> CurrentHand);
|
|
|
|
protected abstract bool testEndGame(List<Card> playableCard);
|
|
}
|
|
}
|