Example #1
0
        public override double[] GetInputs(HandHistory history)
        {
            double[] inputs = new double[INPUT_NODE_COUNT];

            int index = 0;

            index = Util.AddPlayersAsSingleNode(history, inputs, index); //1 node
            index = Util.AddRoundAsSingleNode(history, inputs, index);   //1 node
            //index = Util.AddCardsAsSingleNodes(history, inputs, index);//14 nodes
            //index = Util.AddBetsAsSingleNodes(history, 6, inputs, index);//16 nodes
            index = Util.AddBetsDecisionInfoAndPositionAsSingleNodes(history, inputs, index); //5 nodes
            index = Util.AddProbabilitiesAsSingleNodes(history, inputs, index);               //4 nodes
            //index = Util.AddAnalysisAsSingleNodes(history, inputs, index);//10 nodes

            //lock (DebugLock)
            //{
            //    debugPrint(history, inputs);
            //    Console.ReadKey(false);
            //}
            if (index != INPUT_NODE_COUNT)
            {
                throw new Exception("Wrong: " + index);
            }

            return(inputs);
        }