Up until now, we have observed state as an encoded value or values. These values may have been the cell number in a grid or the x,y location in an area. Either way, these values have been encoded with respect to some reference. In the case of the grid environment, we may use a number to denote the square or a pair of numbers. For x,y coordinates, we still need to denote an origin, and examples of these three types of encoding mechanism are as follows:
In the preceding diagram, there are three examples of encoding state for an environment. For the first example, which is on the left, we just use a number to represent that state. Moving right to the next grid, the state is now represented as a pair of digits, row by column. On the far right, we can see our old friend the Lunar Lander and how part of its state...