-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7743c1b
commit a971b13
Showing
9 changed files
with
49 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/CardGames.Playground.Runner/CardGames.Poker.Benchmarks.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,29 @@ | ||
using CardGames.Poker.CLI.Simulation; | ||
using Spectre.Console.Cli; | ||
|
||
namespace CardGames.Poker.CLI; | ||
|
||
internal static class Program | ||
var app = new CommandApp(); | ||
app.Configure(configuration => | ||
{ | ||
private static void Main(string[] args) | ||
configuration.SetApplicationName("poker-cli"); | ||
configuration.AddBranch<SimulationSettings>("sim", sim => | ||
{ | ||
var app = new CommandApp(); | ||
app.Configure(configuration => | ||
{ | ||
configuration.SetApplicationName("poker-cli"); | ||
configuration.AddBranch<SimulationSettings>("sim", sim => | ||
{ | ||
sim | ||
.AddCommand<StudSimulationCommand>("stud-hi") | ||
.WithAlias("7cs-hi") | ||
.WithAlias("stud") | ||
.WithDescription("Runs a 7-card Stud hi simulation."); | ||
sim | ||
.AddCommand<StudSimulationCommand>("stud-hi") | ||
.WithAlias("7cs-hi") | ||
.WithAlias("stud") | ||
.WithDescription("Runs a 7-card Stud hi simulation."); | ||
|
||
sim | ||
.AddCommand<HoldemSimulationCommand>("holdem") | ||
.WithAlias("nlh") | ||
.WithAlias("lhe") | ||
.WithDescription("Runs a Holdem simulation."); | ||
|
||
sim | ||
.AddCommand<HoldemSimulationCommand>("holdem") | ||
.WithAlias("nlh") | ||
.WithAlias("lhe") | ||
.WithDescription("Runs a Holdem simulation."); | ||
sim | ||
.AddCommand<OmahaSimulationCommand>("omaha") | ||
.WithAlias("plo") | ||
.WithDescription("Runs an Omaha simulation."); | ||
}); | ||
}); | ||
|
||
sim | ||
.AddCommand<OmahaSimulationCommand>("omaha") | ||
.WithAlias("plo") | ||
.WithDescription("Runs an Omaha simulation."); | ||
}); | ||
}); | ||
app.Run(args); | ||
} | ||
} | ||
app.Run(args); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters