mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-23 15:37:51 -08:00
16 lines
568 B
C#
16 lines
568 B
C#
namespace Poker.Strategies;
|
|
|
|
internal abstract class Strategy
|
|
{
|
|
public static Strategy None = new None();
|
|
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; }
|
|
}
|