mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-10 04:07:28 -08:00
Replace Z with strategy
This commit is contained in:
14
71_Poker/csharp/Strategies/Strategy.cs
Normal file
14
71_Poker/csharp/Strategies/Strategy.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user