Replace Z with strategy

This commit is contained in:
Andrew Cooper
2022-06-24 08:33:41 +10:00
parent cdc8797312
commit 3d8bae0a09
10 changed files with 104 additions and 71 deletions

View File

@@ -5,7 +5,7 @@ namespace Poker;
internal class Table
{
private IReadWrite _io;
private readonly IReadWrite _io;
public int Pot;
public Table(IReadWrite io, Deck deck, Human human, Computer computer)
@@ -24,9 +24,9 @@ internal class Table
public Human Human { get; }
public Computer Computer { get; }
public void Deal()
public void Deal(IRandom random)
{
Deck.Shuffle();
Deck.Shuffle(random);
Pot = Human.AnteUp() + Computer.AnteUp();