Example #1
0
        //Used to erase session-based progress.
        //This is also called each new episode once we reach the max steps
        //Not called when the program launches
        public void StartNewEpisode()
        {
            cans_collected  = 0;
            episode_rewards = 0;                  //Session - Reward data

            board_data.shuffle_cans_and_bender(); //Shuffle the the current board.

            board_data.bender_percieves();

            location_result = new int[2] {
                board_data.bender.x_coordinate, board_data.bender.y_coordinate
            };

            bender_perception_starting = board_data.bender.get_perception_state();
            bender_perception_ending   = board_data.bender.get_perception_state();

            live_qmatrix.ProcessNewEpisode();
        }