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.
25 lines
693 B
25 lines
693 B
using System;
|
|
using System.Collections.Generic;
|
|
using TheGameExtreme.model.card;
|
|
|
|
namespace TheGameExtreme.model.rule.endTurnRules
|
|
{
|
|
public class CompleteHand : EndTurnRule
|
|
{
|
|
|
|
public static readonly String REGLE_COMPLETEHAND = "Complete Hand";
|
|
|
|
public override bool Test(List<Card> CurrentCardPlayed, int nbCardAtBeginOfTurn, List<Card> CurrentHand)
|
|
{
|
|
// Si carte qui fait piocher que d'un, vérifier la bonne pioche (penser si elle vient d'être recouverte)
|
|
// Sinon
|
|
if (nbCardAtBeginOfTurn == CurrentCardPlayed.Count)
|
|
{
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
}
|
|
}
|