AIXI.MazeEnvironment.calculate_observation C# (CSharp) Method

calculate_observation() public method

public calculate_observation ( ) : void
return void
        public void calculate_observation()
        {
            this.Observation = 0;
            if (this.GetPosition(X+1, Y) == CWall) {
                this.Observation |= this.ORightWall;
            }
            if (this.GetPosition(X - 1, Y) == CWall)
            {
                this.Observation |= this.OLeftWall;
            }
            if (this.GetPosition(X, Y+1) == CWall)
            {
                this.Observation |= this.ODownWall;
            }
            if (this.GetPosition(X, Y-1) == CWall)
            {
                this.Observation |= this.OUpWall;
            }
        }