AIXI.MazeEnvironment.GetReward C# (CSharp) Method

GetReward() public method

public GetReward ( int x, int y ) : int
x int
y int
return int
        public int GetReward(int x, int y)
        {
            //TODO
            if (this.InMaze(x, y)) {
                if (this.Maze[y,x] == CWall)
                {
                    return this.RWall;
                }
                if (this.Maze[y, x] == CEmpty)
                {
                    return this.REmpty;
                }
                if (this.Maze[y, x] == CCheese)
                {
                    return this.RCheese;
                }

            }
            return this.OutsideMazeReward;
        }