Пример #1
0
        //
        // PRIVATE METHODS
        //
        private bool isTerminal(S s)
        {
            bool terminal = false;

            if (0 == mdp.actions(s).Size())
            {
                // No actions possible in state is considered terminal.
                terminal = true;
            }
            return(terminal);
        }