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.
26 lines
560 B
26 lines
560 B
using System;
|
|
using System.Collections.Generic;
|
|
using TheGameExtreme.model.card;
|
|
using TheGameExtreme.model.card.rapidCard;
|
|
|
|
namespace TheGameExtreme.model.rule.endRule
|
|
{
|
|
public class NbCardPlay : EndTurnRule
|
|
{
|
|
|
|
public NbCardPlay()
|
|
{
|
|
}
|
|
|
|
override public bool Test(List<Card> CurrentCardPlayed, int nbCardAtBeginOfTurn, List<Card> CurrentHand)
|
|
{
|
|
if ((nbCardAtBeginOfTurn - CurrentHand.Count) < 2)
|
|
{
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
}
|
|
}
|