Example #1
0
        public static void PredictAction_CheckBet(ref float toCheck, ref float toBet, Range range, Street street, Board board, float betChance, DecisionMakingContext dmContext)
        {
            Unmanaged_Range unmanagedRange = new Unmanaged_Range(range);

            Unmanaged_Card[] cards = BoardToUnmanaged(board);

            PredictAction_CheckBet(ref toCheck, ref toBet, ref unmanagedRange, (int)street, cards, betChance, dmContext.GC);
        }
Example #2
0
        public static void PredictAction_FoldCallRaise(ref float toFold, ref float toCall, ref float toRaise, Range range,
                                                       Street street, Board board, float raiseChance, float callChance, DecisionMakingContext dmContext)
        {
            Unmanaged_Range unmanagedRange = new Unmanaged_Range(range);

            Unmanaged_Card[] cards = BoardToUnmanaged(board);

            PredictAction_FoldCallRaise(ref toFold, ref toCall, ref toRaise, ref unmanagedRange, (int)street, cards, raiseChance, callChance, dmContext.GC);
        }
Example #3
0
        public static void CutRange_FoldCallRaise(Range range, ActionType actionType, Street street, Board board, float raiseChance, float callChance, DecisionMakingContext dmContext)
        {
            Unmanaged_Range unmanagedRange = new Unmanaged_Range(range);

            Unmanaged_Card[] cards = BoardToUnmanaged(board);

            CutRange_FoldCallRaise(ref unmanagedRange, (int)actionType, (int)street, cards, raiseChance, callChance, dmContext.GC);
            unmanagedRange.ToManaged(range);
        }
Example #4
0
        public static void CutRange_CheckBet(Range range, ActionType actionType, Street street, Board board, float betChance, DecisionMakingContext dmContext)
        {
            Unmanaged_Range unmanagedRange = new Unmanaged_Range(range);

            Unmanaged_Card[] cards = BoardToUnmanaged(board);

            CutRange_CheckBet(ref unmanagedRange, (int)actionType, (int)street, cards, betChance, dmContext.GC);
            unmanagedRange.ToManaged(range);
        }
Example #5
0
        public static void Range_GetSortedHoleCards(Range range, Street street, Board board, DecisionMakingContext dmContext)
        {
            Unmanaged_Range unmanagedRange = new Unmanaged_Range(range);

            Unmanaged_Card[] cards = BoardToUnmanaged(board);

            Range_GetSortedHoleCards(ref unmanagedRange, (int)street, cards, dmContext.GC);
            unmanagedRange.ToManaged(range);
        }
Example #6
0
            public Unmanaged_Player(Player player, int ind)
            {
                id               = ind;
                statusInHand     = (int)player.StatusInHand;
                lastAction       = (int)player.LastAction;
                prevStreetAction = (int)player.PrevStreetAction;
                preFlopPosition  = (int)player.PreFlopPosition;
                stack            = player.Stack;
                moneyInPot       = player.MoneyInPot;

                model = new Unmanaged_OpponentModel(player.Model);
                range = new Unmanaged_Range(player.Range);
            }
Example #7
0
 private static extern void PredictAction_FoldCallRaise(ref float toFold, ref float toCall, ref float toRaise, ref Unmanaged_Range range, int street,
                                                        [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] Unmanaged_Card[] board, float raiseChance, float callChance, IntPtr gc);
Example #8
0
 private static extern void PredictAction_CheckBet(ref float toCheck, ref float toBet, ref Unmanaged_Range range, int street,
                                                   [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] Unmanaged_Card[] board, float betChance, IntPtr gc);
Example #9
0
 private static extern void CutRange_FoldCallRaise(ref Unmanaged_Range range, int actionType, int street,
                                                   [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] Unmanaged_Card[] board, float raiseChance, float callChance, IntPtr gc);
Example #10
0
 private static extern void Range_GetSortedHoleCards(ref Unmanaged_Range range, int street,
                                                     [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] Unmanaged_Card[] board, IntPtr gc);