Files
basic-computer-games/71_Poker/csharp/Strategies/Strategy.cs
2022-06-24 08:33:57 +10:00

15 lines
522 B
C#

namespace Poker.Strategies;
internal abstract class Strategy
{
public static Strategy Fold = new Fold();
public static Strategy Check = new Check();
public static Strategy Raise = new Raise();
public static Strategy Bet(float amount) => new Bet((int)amount);
public static Strategy Bet(int amount) => new Bet(amount);
public static Strategy Bluff(int amount, int? keepMask = null) => new Bluff(amount, keepMask);
public abstract int Value { get; }
public virtual int? KeepMask { get; }
}