diff --git a/src/NPokerEngine.Tests/NPokerEngine.Tests.csproj b/src/NPokerEngine.Tests/NPokerEngine.Tests.csproj index 5d8e9ce..5b0cdfd 100644 --- a/src/NPokerEngine.Tests/NPokerEngine.Tests.csproj +++ b/src/NPokerEngine.Tests/NPokerEngine.Tests.csproj @@ -1,7 +1,7 @@ - net6.0 + net7.0 enable disable diff --git a/src/NPokerEngine/Types/Player.cs b/src/NPokerEngine/Types/Player.cs index 6621268..bba58da 100644 --- a/src/NPokerEngine/Types/Player.cs +++ b/src/NPokerEngine/Types/Player.cs @@ -178,7 +178,7 @@ public ActionHistoryEntry BlindHistory(bool smallBlind, float sbAmount) public ActionHistoryEntry AnteHistory(float payAmount) { - Debug.Assert(payAmount > 0); + if (payAmount <= 0) throw new Exception($"Ante can be 0"); return new ActionHistoryEntry { ActionType = ActionType.ANTE,